Skip to content

Commit 22d1526

Browse files
committed
use bootstrap interface to allow non-pimple bootstraps to work.
1 parent 252ec33 commit 22d1526

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

includes/bootstrap.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2191,7 +2191,7 @@ function drupal_anonymous_user() {
21912191
* @return
21922192
* The most recently completed phase.
21932193
*/
2194-
function drupal_bootstrap($phase = NULL, $new_phase = TRUE, \Drupal\Core\Bootstrap $object = NULL) {
2194+
function drupal_bootstrap($phase = NULL, $new_phase = TRUE, \Drupal\Core\BootstrapInterface $object = NULL) {
21952195
static $bootstrap;
21962196
if (!isset($bootstrap)) {
21972197
if (!isset($object)) {

index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
define('DRUPAL_ROOT', getcwd());
2020

2121
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
22-
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
22+
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL, TRUE, new \Drupal\Core\Bootstrap());
2323
menu_execute_active_handler();

0 commit comments

Comments
 (0)