Ejemplo n.º 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'));
 }
Ejemplo n.º 2
0
 protected function bindCallbacksOnHooks(HooksFactory $hooks)
 {
     $hooks->bind();
 }