Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
6856f73b
Commit
6856f73b
authored
Dec 07, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2031589
by Mark Carver: DrupalKernel.php coder review.
parent
2e215f7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
core/lib/Drupal/Core/DrupalKernel.php
core/lib/Drupal/Core/DrupalKernel.php
+4
-4
No files found.
core/lib/Drupal/Core/DrupalKernel.php
View file @
6856f73b
...
...
@@ -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'
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment