Repository navigation
2.3.0
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
TransferConfigto 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',
];
}
}