public function boot()
 {
     // Service provider
     App::register('\\Maatwebsite\\Excel\\ExcelServiceProvider');
     // Register alias
     $alias = AliasLoader::getInstance();
     $alias->alias('Excel', '\\Maatwebsite\\Excel\\Facades\\Excel');
 }
 /**
  * Register the application services.
  *
  * @return void
  */
 public function register()
 {
     App::register(\EasySlug\EasySlug\EasySlugServiceProvider::class);
     $this->app->bindShared('command.forum.table', function ($app) {
         return new MigrateForumCommand();
     });
     $this->commands('command.forum.table');
     include __DIR__ . '/../routes.php';
 }
 /**
  * Register the application services.
  *
  * @return void
  */
 public function register()
 {
     // Register the HtmlServiceProvider
     App::register(HtmlServiceProvider::class);
     // Add aliases to Form/Html Facade
     $loader = AliasLoader::getInstance();
     $loader->alias('Form', FormFacade::class);
     $loader->alias('HTML', HtmlFacade::class);
     // Add alias for datagrid
     $loader->alias('Datagrid', 'Aginev\\Datagrid\\Datagrid');
 }
Exemple #4
0
 /**
  * Register the application services.
  *
  * @return void
  */
 public function register()
 {
     // Register the HtmlServiceProvider
     App::register('Illuminate\\Html\\HtmlServiceProvider');
     // Add aliases to Form/Html Facade
     $loader = AliasLoader::getInstance();
     $loader->alias('Form', 'Illuminate\\Html\\FormFacade');
     $loader->alias('HTML', 'Illuminate\\Html\\HtmlFacade');
     // Register the acl:fill-permissions command
     $this->app['acl:fill-permissions'] = $this->app->share(function ($app) {
         return new AclFill();
     });
     $this->commands('acl:fill-permissions');
 }
 public function boot()
 {
     App::register(\MatthC\Privileges\PrivilegesServiceProvider::class);
     App::register(\HieuLe\Active\ActiveServiceProvider::class);
     App::bind('Active', function () {
         return new \HieuLe\Active\Facades\Active();
     });
     $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'laradmin');
     $this->publishes([__DIR__ . '/../config/laradmin.php' => config_path('laradmin.php')]);
     $this->publishes([__DIR__ . '/../../public' => public_path('vendor/laradmin')], 'public');
     if (!$this->app->routesAreCached()) {
         require __DIR__ . '/../routes.php';
     }
 }
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->package('selmonal/imagemanager');
     $path = realpath(__DIR__ . "/../../views");
     // naming views
     View::addNamespace('SIM', $path);
     App::bind('Selmonal\\Imagemanager\\ImageRepositoryInterface', 'Selmonal\\Imagemanager\\EloquentImageRepository');
     // Intervention image manipulator
     App::register("Intervention\\Image\\ImageServiceProvider");
     $this->app->bind("Selmonal\\Imagemanager\\ImageManipulator", function () {
         $basePath = public_path() . Config::get("imagemanager::basePath");
         $sizes = Config::get("imagemanager::sizes");
         return new \Selmonal\Imagemanager\ImageManipulator($basePath, $sizes);
     });
 }
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     //
     $app = $this->app;
     $app['social'] = $app->share(function ($app) {
         return new Social();
     });
     require __DIR__ . '/../../routes.php';
     require __DIR__ . '/../../filters.php';
     // Registramos el componente de twitter
     App::register('Thujohn\\Twitter\\TwitterServiceProvider');
     $this->app->bind('SocialTw', function ($app) {
         return new Twitter(Config::get('social::twitter'), $app['session.store']);
     });
 }
 /**
  * @return $this
  */
 public function boot()
 {
     if (!$this->_isBooted) {
         $this->loadViews();
         $this->loadTranslations();
         $this->loadAssets();
         $this->loadConfig();
         $serviceProviderPath = $this->getServiceProviderPath();
         if (is_file($serviceProviderPath)) {
             App::register($this->getNamespace() . '\\Providers\\ModuleServiceProvider');
         }
         $this->_isBooted = TRUE;
     }
     return $this;
 }
 protected function registerCoreEventServiceProvider()
 {
     App::register(new CoreEventServiceProvider($this->app));
 }
Exemple #10
0
 public function _before()
 {
     // We have a problem here in that foreach fixture,
     // from the traitsProvider() method, the _before()
     // and _after() method are invoked. This is painfully
     // slow.
     // Avoid traditional startup...
     //parent::_before();
     // Create faker if needed
     if (!isset($this->faker)) {
         $this->faker = FakerFactory::create();
     }
     // Start Laravel app.
     if (!$this->hasApplicationBeenStarted()) {
         $this->startApplication();
     }
     // Before we obtain it - we need to make a small configuration
     // because the test-fixtures in Orchestra doesn't contain it.
     // We are generating it here, more or less just like Laravel
     ConfigFacade::set('app.key', Str::random(32));
     // HOTFIX, see https://github.com/orchestral/testbench/pull/128
     // This can be removed again, when fixed by author
     if (!ConfigFacade::has('broadcasting.connections.null')) {
         ConfigFacade::set('broadcasting.connections.null', ['driver' => 'null']);
     }
     // HOTFIX, see https://github.com/orchestral/testbench/pull/129
     // This can be removed again, when fixed by author
     $providers = ConfigFacade::get('app.providers');
     if (!in_array(\Illuminate\Notifications\NotificationServiceProvider::class, $providers)) {
         App::register(\Illuminate\Notifications\NotificationServiceProvider::class);
     }
 }
Exemple #11
0
 public function boot()
 {
     App::register('Clockwork\\Support\\Laravel\\ClockworkServiceProvider');
     $alias = AliasLoader::getInstance();
     $alias->alias('Clockwork', 'Clockwork\\Support\\Laravel\\Facade');
 }
 protected function registerMarketingEventServiceProvider()
 {
     App::register(new MarketingEventServiceProvider($this->app));
 }