Domain::getCachedServicesPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
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