Explorar o código

Updated the way the configuration is loaded

Pascal Burkhard %!s(int64=14) %!d(string=hai) anos
pai
achega
f301dc399d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      DependencyInjection/BaseApplicationExtension.php

+ 1 - 1
DependencyInjection/BaseApplicationExtension.php

@@ -99,7 +99,7 @@ class BaseApplicationExtension extends Extension
     
     protected function configLoadFiles($container)
     {
-        $loader = new XmlFileLoader($container, __DIR__ . '/../Resources/config');
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
 
         foreach ($this->configNamespaces as $ns => $params) {
             $loader->load(sprintf('%s.xml', $ns));