src/Tools/EventManager.php
public function execute($eventName, $object)
    {
        if (isset($this->events[$eventName]) && is_array(($this->events[$eventName]))) {
            foreach ($this->events[$eventName] as $method) {
                call_user_func([$object, $method]);
            }
        }
    }
public function execute($eventName, $object)
    {
        if (isset($this->events[$eventName]) && is_array(($this->events[$eventName]))) {
            foreach ($this->events[$eventName] as $method) {
                call_user_func([$object, $method]);
            }
        }
    }
public function execute ( $ eventName , $ object ) { if ( isset ( $ this -> events [ $ eventName ] ) && is_array ( ( $ this -> events [ $ eventName ] ) ) ) { foreach ( $ this -> events [ $ eventName ] as $ method ) { call_user_func ( [ $ object , $ method ] ) ; } } }
Execute an event

@param   string  $eventName Name of event
@param   mixed   $object Object on wich object will be executed
@return  void
Execute an event