Changed compatibility so PHP 8
Changed compatibility so Symfony 6
Changed localizeddate to format_datetime
c975LEmailBundle now use Symfony\Component\Mailer\MailerInterfaceand Symfony\Component\Mime\Email which are NOT compatible with Symfony 3.x.
- As the parameters used in the template for the email are set via c975L/ConfigBundle, you don't need anymore to override
Resources/views/emails/layout.html.twigwith yourapp/Resources/c975LEmailBundle/views/emails/layout.html.twig, so you can delete it, unless you want to override/disable a block, refer toREADME.mdfor this.
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.ymlare 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_email.sentFrom, so you have to replace$this->getParameter('c975_l_email.sentFrom')by$configService->getParameter('c975LEmail.sentFrom'), where$configServiceis the injection ofc975L\ConfigBundle\Service\ConfigServiceInterface, or your can use the shortcut$emailService->getParameter('c975LPayment.XXX')where$emailServiceis the injection ofc975L\EmailBundle\Service\EmailServiceInterface. - Before the first use of parameters, you MUST use the console command
php bin/console config:createto create the config files with default data.