diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-10-01 16:28:38 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-10-15 21:42:29 +0200 |
commit | c89d35e851d26b78f89bd7ece5e3eaa109c8cac0 (patch) | |
tree | 554523b6b376d258fbf82b8ef8ec16236f774b5f /src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php | |
parent | 3d3ed955f11006a408c6596eb9151a0afb28e721 (diff) | |
download | wallabag-c89d35e851d26b78f89bd7ece5e3eaa109c8cac0.tar.gz wallabag-c89d35e851d26b78f89bd7ece5e3eaa109c8cac0.tar.zst wallabag-c89d35e851d26b78f89bd7ece5e3eaa109c8cac0.zip |
Language selection on config screen
Diffstat (limited to 'src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php')
-rw-r--r-- | src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php index 7493351b..330cc957 100644 --- a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php +++ b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php | |||
@@ -11,6 +11,10 @@ class WallabagCoreExtension extends Extension | |||
11 | { | 11 | { |
12 | public function load(array $configs, ContainerBuilder $container) | 12 | public function load(array $configs, ContainerBuilder $container) |
13 | { | 13 | { |
14 | $configuration = new Configuration(); | ||
15 | $config = $this->processConfiguration($configuration, $configs); | ||
16 | $container->setParameter('wallabag_core.languages', $config['languages']); | ||
17 | |||
14 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); | 18 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
15 | $loader->load('services.yml'); | 19 | $loader->load('services.yml'); |
16 | } | 20 | } |