Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3421017
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3421017
Commits
73fee52a
Commit
73fee52a
authored
12 years ago
by
Katherine Bailey
Browse files
Options
Downloads
Patches
Plain Diff
No need to boot the kernel explicitly as it can now get booted just when it's handling the request
parent
aef0436e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
index.php
+3
-7
3 additions, 7 deletions
index.php
with
3 additions
and
7 deletions
index.php
+
3
−
7
View file @
73fee52a
...
...
@@ -18,23 +18,19 @@
* Root directory of Drupal installation.
*/
define
(
'DRUPAL_ROOT'
,
getcwd
());
// Bootstrap the lowest level of what we need.
require_once
DRUPAL_ROOT
.
'/core/includes/bootstrap.inc'
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_CONFIGURATION
);
// Create a request object from the HTTPFoundation.
$request
=
Request
::
createFromGlobals
();
// Bootstrap all of Drupal's subsystems, but do not initialize anything that
// depends on the fully resolved Drupal path, because path resolution happens
// during the REQUEST event of the kernel.
// @see Drupal\Core\EventSubscriber\PathSubscriber;
// @see Drupal\Core\EventSubscriber\LegacyRequestSubscriber;
require_once
DRUPAL_ROOT
.
'/core/includes/bootstrap.inc'
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_CODE
);
$kernel
=
new
DrupalKernel
(
'prod'
,
FALSE
);
$kernel
->
boot
();
// Create a request object from the HTTPFoundation.
$request
=
Request
::
createFromGlobals
();
$response
=
$kernel
->
handle
(
$request
)
->
prepare
(
$request
)
->
send
();
$kernel
->
terminate
(
$request
,
$response
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment