-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Make AddressList logic more accessible #6268
Make AddressList logic more accessible #6268
Conversation
* @throws Exception\InvalidArgumentException | ||
* @return AddressList | ||
*/ | ||
public function addFromString($address) |
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.
Just an idea: can we move this to an external helper class instead?
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 not sure where a helper class would go?
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.
Not sure either :\ I guess it makes sense here then.
@davidwindell can you remove davidwindell/zf2@ef98f22 ? |
@davidwindell can you also move the relevant tests or copy them to the appropriate test class? |
@Ocramius errant commit has been removed, can we merge this now? The existing tests are specific to headers so probably best to leave them where they area. |
@davidwindell merged manually @9c1130859d32f465cbc38a76d58211c2d3a31565 |
…om-string' into develop Close zendframework/zendframework#6268
I needed access to the logic used here outside of Zend\Mail\Header\x, so I moved it to the AddressList.