New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EmailBundle - removing deprecated code #8049
EmailBundle - removing deprecated code #8049
Conversation
6814832
to
ca3356a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
I've tested the followings :
- Create an email
- Clone an email
- Delete an email
- Open builder
- Change theme
All is working :)
ca3356a
to
7d5a4dd
Compare
Some conflicts need resolving |
Yes, it should. I must have forgot that step here. Thanks for noticing. Ready for second round. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\Mautic\EmailBundle\Form\Type\EmailType
Could you please change form type to FQCN on lines 505 and 506 (hidden type)?
@anton-vlasenko thanks! Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry that I don't post all my findings in one post, but I keep finding items that have to be refactored (in my opinion).
- A call to setMauticFactory method still present in the
\Mautic\EmailBundle\Controller\AjaxController
(lines 228, 229) \Mautic\EmailBundle\Controller\EmailController
extendsMautic\CoreBundle\Controller\FormController
. FormController is deprecated. EmailController is also using $this->factory, which is also deprecated (MauticFactory).\Mautic\EmailBundle\Controller\PublicController
extendsMautic\CoreBundle\Controller\FormController
. FormController is deprecated. PublicController is also using $this->factory, which is also deprecated (MauticFactory).\Mautic\EmailBundle\Helper\MailHelper
still uses MauticFactory ($this->factory).\Mautic\EmailBundle\Swiftmailer\Transport\AbstractTokenArrayTransport
still uses MauticFactory. It also has setMauticFactory method defined, which is deprecated.\Mautic\EmailBundle\Swiftmailer\Transport\InterfaceTokenTransport
is deprecated and should be removed.\Mautic\EmailBundle\EmailEvents::ON_CAMPAIGN_TRIGGER_ACTION
is deprecated and should be removed.\Mautic\EmailBundle\Swiftmailer\Transport\AbstractTokenArrayTransport::$factory
is deprecated (MauticFactory).\Mautic\EmailBundle\Swiftmailer\Transport\AbstractTokenArrayTransport::setMauticFactory
is deprecated.\Mautic\EmailBundle\Swiftmailer\Transport\MandrillTransport
on lines 253 and 289 it says that the BC support @deprecated. I think this has to be refactored.
I will check the VariantType once my laptop is fixed. We are not dealing with controllers in M3 and there is another issue to refactor the transports so those won't be refactored in this PR. |
@escopecz Thank you for explaining to me. I haven't noticed these issues on the board. I just don't understand how the controllers are going to work if we don't refactor them. But If you say that they should not be refactored now I'm fine with that. I'm just curious what our plan is. |
@anton-vlasenko I fixed the VariantType and created issue for the campaign batch deprecation #8191 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\Mautic\EmailBundle\Helper\MailHelper
still uses MauticFactory.
It's not a controller/transport.
IMO we either have to refactor it in this PR or create an issue for it (I can't find it on the board).
@anton-vlasenko here is the issue: #8060 Just to be clear what the current goal is. Let's make Mautic work on Symfony 3.4. If there will be time to refactor more we can do that. Removing MauticFactory is secondary goal. Let's focus on the primary goal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how I missed the issue.
The code looks fine.
I've tested it and didn't find any errors.
So I approve this PR.
@escopecz Could you please merge it? |
Please be sure you are submitting this against the staging branch.
Description:
Steps to test this PR:
List deprecations along with the new alternative:
In https://docs.google.com/document/d/1lHNK8hHQtvyWlz9OtfAoLupDVb5-QunQjq-HAGlAsS4/edit#
List backwards compatibility breaks:
In https://docs.google.com/document/d/1lHNK8hHQtvyWlz9OtfAoLupDVb5-QunQjq-HAGlAsS4/edit#