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