| 1 | <?php namespace Modules\Dashboard\Providers; |
||
| 9 | class DashboardServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Indicates if loading of the provider is deferred. |
||
| 13 | * |
||
| 14 | * @var bool |
||
| 15 | */ |
||
| 16 | protected $defer = false; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Register the service provider. |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function register() |
||
| 38 | |||
| 39 | public function boot(StylistThemeManager $theme) |
||
| 40 | { |
||
| 41 | $this->publishes([ |
||
| 42 | __DIR__ . '/../Resources/views' => base_path('resources/views/asgard/dashboard'), |
||
| 43 | ], 'views'); |
||
| 44 | |||
| 45 | $this->app['view']->prependNamespace( |
||
| 46 | 'dashboard', |
||
| 47 | base_path('resources/views/asgard/dashboard') |
||
| 48 | ); |
||
| 49 | $this->app['view']->prependNamespace( |
||
| 50 | 'dashboard', |
||
| 51 | $theme->find(config('asgard.core.core.admin-theme'))->getPath() . '/views/modules/dashboard' |
||
| 52 | ); |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Get the services provided by the provider. |
||
| 57 | * |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | public function provides() |
||
| 64 | } |
||
| 65 |