We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac246e3 commit e8a0514Copy full SHA for e8a0514
Bootstrap.php
@@ -21,6 +21,11 @@ class Bootstrap extends AutoloadBootstrap
21
*/
22
public function __construct(array $values = array())
23
{
24
+ // If this bootstrap object is used in a service, bootstrap.inc may
25
+ // not have been included yet. If the file is not included, the
26
+ // Drupal bootstrap constants are not available.
27
+ require_once $values['DRUPAL_ROOT'] .'/includes/bootstrap.inc';
28
+
29
parent::__construct($values);
30
31
/**
0 commit comments