src/SWP/Bundle/TemplateEngineBundle/DependencyInjection/SWPTemplateEngineExtension.php 1 location
|
@@ 26-36 (lines=11) @@
|
| 23 |
|
* |
| 24 |
|
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} |
| 25 |
|
*/ |
| 26 |
|
class SWPTemplateEngineExtension extends Extension |
| 27 |
|
{ |
| 28 |
|
/** |
| 29 |
|
* {@inheritdoc} |
| 30 |
|
*/ |
| 31 |
|
public function load(array $configs, ContainerBuilder $container) |
| 32 |
|
{ |
| 33 |
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 34 |
|
$loader->load('services.yml'); |
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
|
src/SWP/Bundle/WebRendererBundle/DependencyInjection/SWPWebRendererExtension.php 1 location
|
@@ 26-36 (lines=11) @@
|
| 23 |
|
* |
| 24 |
|
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} |
| 25 |
|
*/ |
| 26 |
|
class SWPWebRendererExtension extends Extension |
| 27 |
|
{ |
| 28 |
|
/** |
| 29 |
|
* {@inheritdoc} |
| 30 |
|
*/ |
| 31 |
|
public function load(array $configs, ContainerBuilder $container) |
| 32 |
|
{ |
| 33 |
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 34 |
|
$loader->load('services.yml'); |
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
|