bainternet/PHP-Hooks

1 do_action for 3 action ?

Closed this issue · 1 comments

fef06 commented

I have :
$hooks->do_action('notif_collection_action');

And

$classes_actions = array( 
"notif_collection_action"   => array("Notif\NotifListener"),
"notif_collection_action"   => array("User\NotifListener"),
"notif_collection_action"   => array("Ent\NotifListener"));

foreach ($this->classes_actions as $action => $classes) {foreach ($classes as $class) {
$hooks->add_action($action, array( $class, 'action_method' ));
}}

My problem is that only the last action is done.

fef06 commented

Sorry It's ok . I'm idiot ahahah