This package is abandoned and no longer maintained. The author suggests using the fond-of-oryx/feed package instead.

Creates a data feed. Currently only an availability CSV File SKU/Quantity.

2.0.4 2019-05-08 12:07 UTC

This package is auto-updated.

Last update: 2021-07-08 07:07:38 UTC


README

PHP from Travis config license

1. Install

    composer require fond-of-spryker/feed

2. Extend Availability Query Container in PYZ like below

namespace Pyz\Zed\Availability\Persistence;

use Spryker\Zed\Availability\Persistence\AvailabilityQueryContainer as SprykerAvailabilityQueryContainer;

/**
 * @method \Spryker\Zed\Availability\Persistence\AvailabilityPersistenceFactory getFactory()
 */
class AvailabilityQueryContainer extends SprykerAvailabilityQueryContainer implements AvailabilityQueryContainerInterface
{
    /**
     * @api
     *
     * @return \Orm\Zed\Availability\Persistence\Base\SpyAvailabilityQuery
     */
    public function queryAllAvailability()
    {
        return $this->getFactory()->createSpyAvailabilityQuery();
    }
}

3. Console

    vendor/bin/console transfer:generate

4. Add ControllerProvider FeedControllerProvider.php to YvesBootstrap

5. Add basic auth password and user to config file for example in config_default.php

// ---------- Feed
$config[FeedConstants::FEED_USER] = 'foo';
$config[FeedConstants::FEED_PASSWORD] = 'bar';

6. Open https://[URL]/feed/availability