AbstractThemeServiceProvider::provides()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Scaffolder\Themes;
4
5
use Collective\Html\HtmlServiceProvider;
6
7
abstract class AbstractThemeServiceProvider extends HtmlServiceProvider
8
{
9
    public function register()
10
    {
11
        $this->registerHtmlBuilder();
12
        $this->registerThemeFormBuilder();
13
        $this->registerThemeViews();
14
        $this->registerThemeLayouts();
15
    }
16
17
    abstract protected function registerThemeFormBuilder();
18
19
    abstract protected function registerThemeViews();
20
21
    abstract protected function registerThemeLayouts();
22
23
    public function provides()
24
    {
25
        return ['html', 'form', 'scaffolder.theme.views', 'scaffolder.theme.layouts'];
26
    }
27
}