Skip to content
Snippets Groups Projects
Commit 6856f73b authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2031589 by Mark Carver: DrupalKernel.php coder review.

parent 2e215f7f
No related merge requests found
......@@ -162,7 +162,7 @@ class DrupalKernel implements DrupalKernelInterface, TerminableInterface {
*/
public function __construct($environment, ClassLoader $class_loader, $allow_dumping = TRUE) {
$this->environment = $environment;
$this->booted = false;
$this->booted = FALSE;
$this->classLoader = $class_loader;
$this->allowDumping = $allow_dumping;
}
......@@ -189,7 +189,7 @@ public function shutdown() {
return;
}
$this->booted = FALSE;
$this->container = null;
$this->container = NULL;
}
/**
......@@ -274,7 +274,7 @@ public function terminate(Request $request, Response $response) {
/**
* {@inheritdoc}
*/
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) {
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = TRUE) {
if (FALSE === $this->booted) {
$this->boot();
}
......@@ -510,7 +510,7 @@ protected function buildContainer() {
$path = DRUPAL_ROOT . '/core/lib/Drupal/' . $parent_directory;
foreach (new \DirectoryIterator($path) as $component) {
if (!$component->isDot() && is_dir($component->getPathname() . '/Plugin')) {
$namespaces['Drupal\\' . $parent_directory .'\\' . $component->getFilename()] = DRUPAL_ROOT . '/core/lib';
$namespaces['Drupal\\' . $parent_directory . '\\' . $component->getFilename()] = DRUPAL_ROOT . '/core/lib';
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment