Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

SimpleEventDispatcher should use protected visibility instead of private #89

Closed
swiftmailer opened this issue Sep 2, 2011 · 0 comments

Comments

@swiftmailer
Copy link
Collaborator

I recently encountered a situation where I had to ensure that registered listener plugins were called in a specific sequence. To do this I tried creating a class which inherits from Swift_Events_SimpleEventDispatcher and which manages listener order based on a priority property.
However, in the Swift_Events_SimpleEventDispatcher class the listener fields (to be specific: the _listener array) have private visibility - is there a special reason why protected isn't used here?

Original creation date: 2010-12-09T13:45:04Z
Original reporter: martinl
Original ticket: http://swiftmailer.lighthouseapp.com/projects/21527/tickets/169

makasim pushed a commit to formapro-forks/swiftmailer that referenced this issue Jul 26, 2017
makasim pushed a commit to formapro-forks/swiftmailer that referenced this issue Jul 26, 2017
@fabpot fabpot closed this as completed Jun 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant