Hey, small question,

why $argv can be a object or array in trigger($event, $target = null, $argv 
= []) when eventinterface can only take array for parm?


Am Sonntag, 20. Juli 2014 22:40:33 UTC+2 schrieb Chuck Reeves:
>
> Back at PHPTek, @crell asked if there were any ideas out there for new FIG 
> standards. I came up with the idea of having an Event Manager Interface 
> through FIG.  
>
> I took a look at Symfony, Zend Framework 2 and Doctrine to see how they 
> work then started an early draft. I made mention of it on twitter and 
> started getting some feedback.  I figured I would start a conversation here 
> to avoid the limitations of twitter and incorporate those ideas into the 
> draft.  Here is the link to what I came up with so far: 
> https://github.com/manchuck/fig-standards/blob/master/proposed/event-manager.md
>
> The 1st reaction was with the use of getName.  Symfony 3 is moving away 
> from using it in favor of using objects.   My initial thought for including 
> getName in EventInterface, was to allow implementer to build an event using 
> EventInterface and then pass that in to the EventManagerInterface::trigger 
>
> I do not know of any other frameworks use an event manager out there.  I 
> would appreciate any feedback on my initial draft as well as insight into 
> other frameworks out there that use events. 
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/68303946-d5bc-4018-917b-d83213c03193%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to