Changed localizeddate
to format_datetime
c975LEmailBundle
now use Symfony\Component\Mailer\MailerInterface
and Symfony\Component\Mime\Email
which are NOT compatible with Symfony 3.x.
When upgrading from v1.x to v2.x you should(must) do the following if they apply to your case:
- The parameters entered in
config.yml
are not used anymore as they are managed by c975L/ConfigBundle, so you can delete them. - As the parameters are not in
config.yml
, we can't access them via$this[->container]->getParameter()
, especially if you were usingc975_l_payment.defaultCurrency
, so you have to replace$this->getParameter('c975_l_payment.XXX')
by$configService->getParameter('c975LPayment.XXX')
, where$configService
is the injection ofc975L\ConfigBundle\Service\ConfigServiceInterface
, or your can use the shortcut$paymentService->getParameter('c975LPayment.XXX')
where$paymentService
is the injection ofc975L\PaymentBundle\Service\PaymentServiceInterface
. - The following parameters are now managed by c975L/ConfigBundle, so you can delete them from
parameters.yml
andparameters.yml.dist
, but before that, copy/paste them in the config.- stripe_secret_key_test
- stripe_publishable_key_test
- stripe_secret_key_live
- stripe_publishable_key_live
- Before the first use of parameters, you MUST use the console command
php bin/console config:create
to create the config files with default data.