示例#1
0
 /**
  * register the plugin's boot() method with a wordpress event
  * @param  Pressor\Container\Hooks\Factory $hooks
  * @param  Pressor\Contracts\Plugins\Plugin $plugin
  * @return void
  */
 public function registerBootEventForPlugin(HooksFactory $hooks, Plugin $plugin)
 {
     $hooks->action($this->bootEvent, array($plugin, 'boot'));
 }
示例#2
0
 protected function registerCallbacksOnHooks(HooksFactory $hooks)
 {
     $hooks->registerBaseCallbacks();
     $hooks->action($this->bindEvent, array($this, 'bind'));
 }