return $this;
} /**
* Executes the listener on the plugin with the given Enlight_Event_EventArgs.
*
* @throws Enlight_Exception
*/
public function execute(Enlight_Event_EventArgs
$args) { $plugin =
$this->
Plugin();
if ($plugin === null || !
method_exists($plugin,
$this->listener
)) { $name =
$this->plugin instanceof Enlight_Plugin_Bootstrap ?
$this->plugin->
getName() :
$this->plugin;
trigger_error('Listener "' .
$this->listener . '" in "' .
$name . '" is not callable.', E_USER_ERROR
);
// throw new Enlight_Exception('Listener "' . $this->listener . '" in "' . $name . '" is not callable.');
return;
} return $this->
Plugin()->
{$this->listener
}($args);
}