Skip to content

2.3.0

Choose a tag to compare

@dereuromark dereuromark released this 01 Dec 14:14
· 531 commits to master since this release

Included commits: 2.2.3...2.3.0

Improvements

It is now more convenient to add source directories for discovery of transfer object definitions:

  • A new extension-point has been added to TransferConfig to enable project implementations to add additional source directory glob-patterns.

To add custom source directories you will need to override Spryker\Zed\Transfer\TransferConfig in your project implementation and return the additional paths and/or glob-patterns from getAdditionalSourceDirectoryGlobPatterns()

namespace Pyz\Zed\Transfer;

use Spryker\Shared\Library\Environment;
use Spryker\Zed\Transfer\TransferConfig as SprykerTransferConfig;

class TransferConfig extends SprykerTransferConfig
{

    /**
     * @return string[]
     */
    protected function getAdditionalSourceDirectoryGlobPatterns()
    {
        return [
            APPLICATION_VENDOR_DIR . '/my-vendor/my-package/src/Transfer',
        ];
    }

}