コード例 #1
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     /**
      * Add usefull helpers on register
      */
     include_once __DIR__ . '/helpers.php';
     /**
      * Register Arxmin with current app setting
      *
      */
     $this->app->bind('arxmin', function ($app) {
         return new Arxmin($app);
     });
     /**
      * Register common arxmin hooks
      */
     Hook::register('arxmin::css');
     Hook::register('arxmin::js');
     Hook::register('arxmin::menu');
     Hook::register('arxmin::rightbar');
     Hook::register('arxmin::widgets');
     Hook::register('arxmin::api.modules');
     $this->registerCommands();
     $this->registerProviders();
     $this->registerFacades();
 }
コード例 #2
0
ファイル: HookTest.php プロジェクト: SerdarSanri/arx-core
 public function testHook()
 {
     Hook::register('test');
     Hook::add('test', 'test');
     $this->assertNotNull(Hook::get('test'), 'Hook is null !');
 }