| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ReComposerServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | public static string $alias = 'recomposer'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public static string $namespaceSuffix = 'solumdesignum'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Boot up the package. Load the views from the correct directory. |
||
| 23 | */ |
||
| 24 | public function boot(): void |
||
| 25 | { |
||
| 26 | $this->loadViewsFrom( |
||
| 27 | __DIR__.'/../resources/views', |
||
| 28 | self::$namespaceSuffix.'/'.self::$alias |
||
| 29 | ); |
||
| 30 | |||
| 31 | if ($this->app->runningInConsole()) { |
||
| 32 | $this->publishes( |
||
| 33 | [ |
||
| 34 | __DIR__.'/../config/recomposer.php' => config_path( |
||
| 35 | 'recomposer.php' |
||
| 36 | ), |
||
| 37 | ], |
||
| 38 | 'config' |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | public function register(): void |
||
| 48 | ); |
||
| 49 | } |
||
| 51 |