public function __construct(App $app)
 {
     parent::__construct($app);
     if ($app->isProduction()) {
         $this->providers = ['Illuminate\\Console\\ScheduleServiceProvider', 'Illuminate\\Queue\\ConsoleServiceProvider'];
     }
 }
Exemplo n.º 2
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     $this->registerAliases();
     $this->requireFiles($this->filesToRegister);
     // Define view namespace, as $this->package() doesn't exist anymore in L5
     View::addNamespace('shift', realpath(__DIR__ . '/../../views'));
 }
Exemplo n.º 3
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     $this->registerUtility();
     $this->registerAssetContainer();
     $this->registerConsumer();
     $this->registerCurrentLocale();
 }
Exemplo n.º 4
0
 public function register()
 {
     parent::register();
     AliasLoader::getInstance()->alias('sitemap', Sitemap::class);
     $this->mergeConfigFrom(__DIR__ . '/../../config/laravel-weblog.php', 'genealabs-laravel-weblog');
     $this->commands(Migrate::class);
     $this->commands(Publish::class);
 }
Exemplo n.º 5
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     // register aliases
     $loader = \Illuminate\Foundation\AliasLoader::getInstance();
     foreach ($this->aliases as $name => $class) {
         $loader->alias($name, $class);
     }
 }
Exemplo n.º 6
0
 /**
  *
  */
 public function register()
 {
     parent::register();
     $this->app->singleton('button', ButtonBuilder::class);
     $this->app->singleton('field', FieldBuilder::class);
     $this->app->singleton('mlform', MultiLingualFormBuilder::class);
     $this->registerAliases();
     // Get our html macros setup
     require_once __DIR__ . '/../../../../boot/macros.php';
 }
Exemplo n.º 7
0
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     // Configuracoes do Blade por causa do AngularJS
     $this->app->booting(function () {
         $blabe = $this->app->make('blade.compiler');
         $blabe->setContentTags('[[', ']]');
         $blabe->setEscapedContentTags('[[[', ']]]');
         $loader = \Illuminate\Foundation\AliasLoader::getInstance();
         $loader->alias('Gravatar', '\\Creativeorange\\Gravatar\\Facades\\Gravatar');
     });
     // Setar namespace "theme"
     $this->loadViewsFrom(__DIR__ . '/../layouts', 'theme');
     // Registrar as paginas de exemplo
     $this->rotas_exemplos($this->app['router']);
 }
Exemplo n.º 8
0
 /**
  * {@inheritDoc}
  */
 public function __construct($app)
 {
     $this->defer = false;
     $this->providers = [SupportServiceProvider::class];
     parent::__construct($app);
 }
Exemplo n.º 9
0
 /**
  * An array of classes that Stylist provides.
  *
  * @return array
  */
 public function provides()
 {
     return array_merge(parent::provides(), ['Stylist', 'Theme']);
 }
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
 }
 /**
  * Sets up the routes required by the application.
  */
 public function register()
 {
     parent::register();
     require_once __DIR__ . '/View/composers.php';
 }
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     $this->mergeConfigFrom(__DIR__ . '/../../config/config.php', 'genealabs-laravel-governor');
 }