ThemeComposer::compose()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
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