Skip to content

Support for Symfony 4

Compare
Choose a tag to compare
@psrpinto psrpinto released this 03 Jan 18:33
· 2 commits to master since this release

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.