Domain   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 4
dl 0
loc 25
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCachedServicesPath() 0 3 1
A registerProviders() 0 4 2
A registerAliases() 0 2 1
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