Upgrade the Propel module
Edit on GitHubThis migration guide is a part of the Silex migration effort.
To upgrade Propel, do the following:
- Install a new module using Composer:
composer require spryker/propel
- Remove old service providers, if you have them in the project:
\Spryker\Zed\Propel\Communication\Plugin\ServiceProvider\PropelServiceProvider
- Add new plugins to dependency providers:
<?php
namespace Pyz\Zed\Console;
use Spryker\Zed\Propel\Communication\Plugin\Application\PropelApplicationPlugin;
class ConsoleDependencyProvider extends SprykerConsoleDependencyProvider
{
/**
* @param \Spryker\Zed\Kernel\Container $container
*
* @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[]
*/
public function getApplicationPlugins(Container $container): array
{
$applicationPlugins = parent::getApplicationPlugins($container);
$applicationPlugins[] = new PropelApplicationPlugin();
return $applicationPlugins;
}
}
<?php
namespace Pyz\Zed\Application;
use Spryker\Zed\Propel\Communication\Plugin\Application\PropelApplicationPlugin;
class ApplicationDependencyProvider extends SprykerApplicationDependencyProvider
{
/**
* @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[]
*/
protected function getApplicationPlugins(): array
{
return [
new PropelApplicationPlugin(),
];
}
}
Thank you!
For submitting the form