Problem/Motivation

We should add interfaces before there is too much code written directly using the class names.

  • All services
  • MailerPolicy
  • MailManagerReplacement
  • DONE EmailFactory
  • Check for others

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

AdamPS created an issue. See original summary.

adamps’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new3.93 KB

  • AdamPS committed 0fe37e9 on 1.x
    Issue #3274069 by AdamPS: Add interfaces
    
adamps’s picture

Issue summary: View changes
Status: Needs review » Active
adamps’s picture

Issue summary: View changes
jaypan’s picture

Status: Active » Needs review
StatusFileSize
new15.12 KB
adamps’s picture

I came to work on this issue and found a patch already - great many thanks. My comments are based on comparison with core. I made a new patch myself, please can you check?

1) Compare for example ImageStyleInterface, I think we want

interface MailerPolicyInterface extends ConfigEntityInterface

and

interface MailManagerReplacementInterface extends MailManagerInterface

2) Controllers that extend ControllerBase apparently never have interfaces.

3) EmailAdjusterManager needs an interface

Status: Needs review » Needs work

The last submitted patch, 7: symfony_mailer.add_interfaces.3274069-7.patch, failed testing. View results

adamps’s picture

Status: Needs work » Needs review
StatusFileSize
new11.65 KB
new907 bytes
adamps’s picture

adamps’s picture

Status: Needs review » Fixed

  • AdamPS committed 8d84c41 on 1.x
    Issue #3274069 by AdamPS, Jaypan: Add interfaces
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.