FacadeIdeHelper::getPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Flawlol\FacadeIdeHelper;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
7
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
8
9
/**
10
 * Class FacadeIdeHelper.
11
 *
12
 * This class extends the AbstractBundle and provides methods for booting the bundle,
13
 * retrieving the path and namespace, and loading the extension configuration.
14
 *
15
 * @author Flawlol
16
 */
17
class FacadeIdeHelper extends AbstractBundle
18
{
19
    /**
20
     * Boot the bundle.
21
     *
22
     * This method is called when the bundle is booted.
23
     */
24
    public function boot(): void
25
    {
26
        parent::boot();
27
    }
28
29
    /**
30
     * Get the path of the bundle.
31
     *
32
     * @return string The path of the bundle.
33
     */
34
    public function getPath(): string
35
    {
36
        return __DIR__;
37
    }
38
39
    /**
40
     * Get the namespace of the bundle.
41
     *
42
     * @return string The namespace of the bundle.
43
     */
44
    public function getNamespace(): string
45
    {
46
        return __NAMESPACE__;
47
    }
48
49
    /**
50
     * Load the extension configuration.
51
     *
52
     * This method loads the extension configuration from the specified YAML file.
53
     *
54
     * @param array                 $config    The configuration array.
55
     * @param ContainerConfigurator $container The container configurator.
56
     * @param ContainerBuilder      $builder   The container builder.
57
     */
58
    public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void
59
    {
60
        $container->import('./Resources/config/services.yaml');
61
    }
62
}
63