Domain::registerProviders()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace Salah3id\Domains\Lumen;
4
5
use Illuminate\Support\Str;
6
use Salah3id\Domains\Domain as BaseDomain;
7
8
class Domain extends BaseDomain
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function getCachedServicesPath(): string
14
    {
15
        return Str::replaceLast('services.php', $this->getSnakeName() . '_domain.php', $this->app->basePath('storage/app/') . 'services.php');
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function registerProviders(): void
22
    {
23
        foreach ($this->get('providers', []) as $provider) {
24
            $this->app->register($provider);
25
        }
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function registerAliases(): void
32
    {
33
    }
34
}
35