]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #3382 from nclsHart/replace-kernel-rootdir
authorJérémy Benoist <j0k3r@users.noreply.github.com>
Sun, 15 Oct 2017 07:24:32 +0000 (09:24 +0200)
committerGitHub <noreply@github.com>
Sun, 15 Oct 2017 07:24:32 +0000 (09:24 +0200)
 Replace kernel.root_dir by kernel.project_dir

1  2 
app/AppKernel.php

diff --combined app/AppKernel.php
index 45f6b795905ea8145357da4f714e01bc402442e6,d582c93e6ed4925d58db6577b71718470db6eca3..90e9f1d8d91470efe228396fb1d29bd3362a86a0
@@@ -48,7 -48,6 +48,7 @@@ class AppKernel extends Kerne
              $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
              $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
              $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
 +            $bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
  
              if ('test' === $this->getEnvironment()) {
                  $bundles[] = new DAMA\DoctrineTestBundle\DAMADoctrineTestBundle();
          return $bundles;
      }
  
-     public function getRootDir()
-     {
-         return __DIR__;
-     }
      public function getCacheDir()
      {
          return dirname(__DIR__) . '/var/cache/' . $this->getEnvironment();
@@@ -75,7 -69,7 +70,7 @@@
  
      public function registerContainerConfiguration(LoaderInterface $loader)
      {
-         $loader->load($this->getRootDir() . '/config/config_' . $this->getEnvironment() . '.yml');
+         $loader->load($this->getProjectDir() . '/app/config/config_' . $this->getEnvironment() . '.yml');
          $loader->load(function ($container) {
              if ($container->getParameter('use_webpack_dev_server')) {
                  $container->loadFromExtension('framework', [