| @@ 19-34 (lines=16) @@ | ||
| 16 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
|
| 17 | * @link http://swisscom.ch |
|
| 18 | */ |
|
| 19 | class GravitonAnalyticsExtension extends Extension |
|
| 20 | { |
|
| 21 | /** |
|
| 22 | * @param array $configs Optional configuration |
|
| 23 | * @param ContainerBuilder $container Sf Container |
|
| 24 | * @return void |
|
| 25 | */ |
|
| 26 | public function load(array $configs, ContainerBuilder $container) |
|
| 27 | { |
|
| 28 | $configuration = new Configuration(); |
|
| 29 | $this->processConfiguration($configuration, $configs); |
|
| 30 | ||
| 31 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 32 | $loader->load('services.yml'); |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||
| @@ 19-34 (lines=16) @@ | ||
| 16 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
|
| 17 | * @link http://swisscom.ch |
|
| 18 | */ |
|
| 19 | class GravitonProxyApiExtension extends Extension |
|
| 20 | { |
|
| 21 | /** |
|
| 22 | * @param array $configs Optional configuration |
|
| 23 | * @param ContainerBuilder $container Sf Container |
|
| 24 | * @return void |
|
| 25 | */ |
|
| 26 | public function load(array $configs, ContainerBuilder $container) |
|
| 27 | { |
|
| 28 | $configuration = new Configuration(); |
|
| 29 | $this->processConfiguration($configuration, $configs); |
|
| 30 | ||
| 31 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 32 | $loader->load('services.yml'); |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||