/** * Bootstrap the module events. * * @return void */ public function boot() { /* * Boot plugins */ $pluginManager = PluginManager::instance()->bootAll(); parent::boot('system'); }
/** * Bootstrap the module events. * * @return void */ public function boot() { parent::boot('cms'); Event::listen('pages.menuitem.listTypes', function () { return ['cms-page' => 'CMS Page']; }); Event::listen('pages.menuitem.getTypeInfo', function ($type) { if ($type == 'cms-page') { return CmsPage::getMenuTypeInfo($type); } }); Event::listen('pages.menuitem.resolveItem', function ($type, $item, $url, $theme) { if ($type == 'cms-page') { return CmsPage::resolveMenuItem($item, $url, $theme); } }); }
/** * Bootstrap the module events. * * @return void */ public function boot() { parent::boot('backend'); }
/** * Bootstrap the module events. * * @return void */ public function boot() { parent::boot('cms'); $this->bootMenuItemEvents(); $this->bootRichEditorEvents(); }
/** * Bootstrap the module events. * * @return void */ public function boot() { parent::boot('cms'); }
/** * Bootstrap the module events. * * @return void */ public function boot() { parent::boot('wechat'); $this->bootWechatApi(); }