| @@ 10-30 (lines=21) @@ | ||
| 7 | use Symfony\Component\Config\FileLocator; |
|
| 8 | use Symfony\Component\DependencyInjection\Loader; |
|
| 9 | ||
| 10 | class MapsExtension extends Extension |
|
| 11 | { |
|
| 12 | ||
| 13 | /** |
|
| 14 | * Loads a specific configuration. |
|
| 15 | * |
|
| 16 | * @param array $configs An array of configuration values |
|
| 17 | * @param ContainerBuilder $container A ContainerBuilder instance |
|
| 18 | * |
|
| 19 | * @throws \InvalidArgumentException When provided tag is not defined in this extension |
|
| 20 | */ |
|
| 21 | public function load(array $configs, ContainerBuilder $container) |
|
| 22 | { |
|
| 23 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 24 | $loader->load('services.yml'); |
|
| 25 | $loader->load('gui.yml'); |
|
| 26 | $loader->load('chat_commands.yml'); |
|
| 27 | $loader->load('plugins.yml'); |
|
| 28 | ||
| 29 | } |
|
| 30 | } |
|
| 31 | ||
| @@ 10-30 (lines=21) @@ | ||
| 7 | use Symfony\Component\Config\FileLocator; |
|
| 8 | use Symfony\Component\DependencyInjection\Loader; |
|
| 9 | ||
| 10 | class DedimaniaExtension extends Extension |
|
| 11 | { |
|
| 12 | ||
| 13 | /** |
|
| 14 | * Loads a specific configuration. |
|
| 15 | * |
|
| 16 | * @param array $configs An array of configuration values |
|
| 17 | * @param ContainerBuilder $container A ContainerBuilder instance |
|
| 18 | * |
|
| 19 | * @throws \InvalidArgumentException When provided tag is not defined in this extension |
|
| 20 | */ |
|
| 21 | public function load(array $configs, ContainerBuilder $container) |
|
| 22 | { |
|
| 23 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 24 | $loader->load('configs.yml'); |
|
| 25 | $loader->load('plugins.yml'); |
|
| 26 | $loader->load('chat_commands.yml'); |
|
| 27 | $loader->load('services.yml'); |
|
| 28 | $loader->load('gui.yml'); |
|
| 29 | } |
|
| 30 | } |
|
| 31 | ||