Navigation Menu

Skip to content

Commit

Permalink
[Framework] fixed loading of compiled classes
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 11, 2010
1 parent 9dd3b65 commit b64e66d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/Symfony/Framework/Kernel.php
Expand Up @@ -127,12 +127,17 @@ public function boot()
$this->container = $this->initializeContainer();

// load core classes
ClassCollectionLoader::load(
$this->container->getParameter('kernel.compiled_classes'),
$this->container->getParameter('kernel.cache_dir'),
'classes',
$this->container->getParameter('kernel.debug')
);
// can only be loaded once (for all Kernel in the same process)
if (!self::$loaded) {
self::$loaded = true;

ClassCollectionLoader::load(
$this->container->getParameter('kernel.compiled_classes'),
$this->container->getParameter('kernel.cache_dir'),
'classes',
$this->container->getParameter('kernel.debug')
);
}

foreach ($this->bundles as $bundle) {
$bundle->setContainer($this->container);
Expand Down

0 comments on commit b64e66d

Please sign in to comment.