Exemplo n.º 1
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->package('vespakoen/menu', null, __DIR__ . '/../');
     $container = Menu::getContainer();
     $container['url'] = $this->app['url'];
     $container['config'] = $this->app['config'];
     Menu::setContainer($container);
 }
Exemplo n.º 2
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $configPath = __DIR__ . '/../config/config.php';
     $this->mergeConfigFrom($configPath, 'menu');
     $container = Menu::getContainer();
     $container['url'] = $this->app['url'];
     $container['config'] = $this->app['config'];
     Menu::setContainer($container);
 }