|
@@ -401,16 +401,11 @@ abstract class Kernel implements KernelInterface
|
|
$this->boot();
|
|
$this->boot();
|
|
}
|
|
}
|
|
|
|
|
|
- if ($this->classes) {
|
|
|
|
- ClassCollectionLoader::load($this->classes, $this->getCacheDir(), $name, $this->debug, true, $extension);
|
|
|
|
|
|
+ if ($this->container->hasParameter('kernel.compiled_classes')) {
|
|
|
|
+ ClassCollectionLoader::load($this->container->getParameter('kernel.compiled_classes'), $this->getCacheDir(), $name, $this->debug, true, $extension);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public function addClassesToCache(array $classes)
|
|
|
|
- {
|
|
|
|
- $this->classes = array_unique(array_merge($this->classes, $classes));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Gets the request start time (not available if debug is disabled).
|
|
* Gets the request start time (not available if debug is disabled).
|
|
*
|
|
*
|
|
@@ -650,8 +645,6 @@ abstract class Kernel implements KernelInterface
|
|
$container->addCompilerPass(new AddClassesToCachePass($this));
|
|
$container->addCompilerPass(new AddClassesToCachePass($this));
|
|
$container->compile();
|
|
$container->compile();
|
|
|
|
|
|
- $this->addClassesToCache($container->getParameter('kernel.compiled_classes'));
|
|
|
|
-
|
|
|
|
return $container;
|
|
return $container;
|
|
}
|
|
}
|
|
|
|
|