1 | <?php |
||
19 | class DebugExtension implements Extension |
||
20 | { |
||
21 | const TAG = 'debug'; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | 20 | public function getConfigKey() |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 4 | public function initialize(ExtensionManager $extensionManager) |
|
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 4 | public function load(ContainerBuilder $container, array $config) |
|
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 4 | public function process(ContainerBuilder $container) |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 4 | public function configure(ArrayNodeDefinition $builder) |
|
59 | |||
60 | /** |
||
61 | * Define a new service in DI container. |
||
62 | * |
||
63 | * @param ContainerBuilder $container |
||
64 | * DI container. |
||
65 | * @param string $class |
||
66 | * Class in namespace of extension. |
||
67 | * @param string $tag |
||
68 | * Tag of the definition. |
||
69 | * @param array $arguments |
||
70 | * Dependency arguments. |
||
71 | * |
||
72 | * @return Definition |
||
73 | * Tagged definition. |
||
74 | */ |
||
75 | 4 | private function definition(ContainerBuilder $container, $class, $tag, array $arguments = []) |
|
83 | |||
84 | /** |
||
85 | * Transform name of class to ID of service. |
||
86 | * |
||
87 | * @example |
||
88 | * Behat\DebugExtension\Debugger => behat.debug.extension.debugger |
||
89 | * |
||
90 | * @param string $className |
||
91 | * Name of class to transform. |
||
92 | * |
||
93 | * @return string |
||
94 | * Transformed string. |
||
95 | */ |
||
96 | 4 | private static function id($className) |
|
105 | } |
||
106 |