Completed
Push — master ( f02869...8251a6 )
by Nicolas
03:31
created

ThemeComposer::compose()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php namespace Modules\Core\Composers;
2
3
use Illuminate\Contracts\View\View;
4
use Modules\Core\Foundation\Theme\ThemeManager;
5
6
class ThemeComposer
7
{
8
    /**
9
     * @var ThemeManager
10
     */
11
    private $themeManager;
12
13
    public function __construct(ThemeManager $themeManager)
14
    {
15
        $this->themeManager = $themeManager;
16
    }
17
18
    public function compose(View $view)
19
    {
20
        $view->with('themes', $this->themeManager->allPublicThemes());
21
    }
22
}
23