Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added section to fix a minor bug in AlphaLemon CMS AppKernel generate…
…d code
  • Loading branch information
alphalemon committed Jul 14, 2013
1 parent 4926b3a commit 21df7de
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions UPGRADE FROM 1.1.x RC3
Expand Up @@ -64,3 +64,38 @@ Upgrade from AlphaLemon CMS Beta4 or older
If you need to upgrade from an AlphaLemon CMS 1.1.x Beta4 version, you must upgrade to
AlphaLemon CMS RC3 and do all the required upgrades. After that you will be able to
upgrade to AlphaLemon CMS RC4, as explained in this documentation.

AppKernel bug fix
-----------------

Open the app/AppKernel.php file and change the following code:

public function registerContainerConfiguration(LoaderInterface $loader)
{
$configFolder = __DIR__ . '/config/bundles/config/' . $this->getEnvironment();
$finder = new \Symfony\Component\Finder\Finder();
$configFiles = $finder->depth(0)->name('*.yml')->in($configFolder);
foreach ($configFiles as $config) {
$loader->load((string)$config);
};

$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}

as follows

public function registerContainerConfiguration(LoaderInterface $loader)
{
$configFolder = __DIR__ . '/config/bundles/config/' . $this->getEnvironment();
if (is_dir($configFolder)) {
$finder = new \Symfony\Component\Finder\Finder();
$configFiles = $finder->depth(0)->name('*.yml')->in($configFolder);
foreach ($configFiles as $config) {
$loader->load((string)$config);
};
}

$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}

This prevents an exception thrown when you add or remove a Block / Theme.

0 comments on commit 21df7de

Please sign in to comment.