1 | <?php |
||
2 | |||
3 | namespace Maestriam\Samurai\Providers; |
||
4 | |||
5 | use Illuminate\Support\ServiceProvider; |
||
6 | use Maestriam\Samurai\Support\Samurai; |
||
7 | |||
8 | class LoadThemesServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Inicia o carregamento do primeiro tema que encontrar |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public function boot() |
||
16 | { |
||
17 | $theme = Samurai::base()->current(); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
18 | |||
19 | if ($theme == null) { return false; |
||
0 ignored issues
–
show
|
|||
20 | } |
||
21 | |||
22 | return $theme->load(); |
||
23 | } |
||
24 | } |
||
25 |