Support for Symfony 4
Added
- Added support for Symfony 4
- Added service aliases for auto-wiring
Since services on Symfony 4 are private by default, instead of doing:
public function someAction($id)
{
$ppc = $this->container->get('payment.plugin_controller');
}
you should instead inject JMS\Payment\CoreBundle\PluginController\PluginController
into your controller actions:
use JMS\Payment\CoreBundle\PluginController\PluginController;
public function someAction($id, PluginController $ppc)
{
}
Changed
- Updated documentation to Symfony 4 directory structure
Removed
- Removed support for PHP versions earlier than 5.6.