public function __construct() { $this->onPluginSet = Event::inject(array('owner' => $this)); }
public function __construct() { foreach (array('onBoot', 'onRun', 'onFail', 'onShutdown') as $name) { $this->{$name} = Event::inject(array('owner' => $this)); } }