示例#1
0
 /**
  * Bootstrap the module events.
  *
  * @return void
  */
 public function boot()
 {
     /*
      * Boot plugins
      */
     $pluginManager = PluginManager::instance()->bootAll();
     parent::boot('system');
 }
示例#2
0
 /**
  * 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);
         }
     });
 }
示例#3
0
 /**
  * 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();
 }
示例#5
0
 /**
  * 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();
 }