On Tue, Nov 13, 2012 at 11:48 AM, Andreas Möller <[email protected]> wrote:
> And that's the point - most occurrences refer to instances of
> EventManager, rather than - what one would expect from the naming - a
> collection of events, an array of events, etc. To make it more clear what
> it *really* is, instances should be named $eventManager, I believe.
>
Ok, now I know what you're expecting.
So in this case, it's a shorthand based on the objective (as opposed to a
shorhand based purely on full name).
I.e.
$this->events->trigger()
$this->events->attach()
$this->events->detach()
It's just like saying "trigger some events" (which of course is not 100%
accurate, but is close to natural language),
"attach something to events" and finally
"detach something from events".
I do not see any purpose for having a separate "collection/array of events"
as opposed to EventManager. EventManager _is_ a collection of events in
that sense (it contains a number of events and listeners).
--
__
/.)\ +48 695 600 936
\(./ [email protected]