Created
February 21, 2017 04:00
-
-
Save jibran/2ba1cf5105487599f38f0a98286b20a8 to your computer and use it in GitHub Desktop.
Drupal minimal bootstrap.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Drupal minimal bootstrap. | |
*/ | |
use Drupal\Core\DrupalKernel; | |
use Symfony\Component\HttpFoundation\Request; | |
$autoloader = require_once 'autoload.php'; | |
$kernel = DrupalKernel::createFromRequest(Request::createFromGlobals(), $autoloader, 'prod'); | |
$kernel->loadLegacyIncludes(); | |
$kernel->boot(); | |
// Drupal code here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment