-
-
Save iamxwk/77d395da60f42872aee2fb054d6ba387 to your computer and use it in GitHub Desktop.
Drupal minimal bootstrap.
This file contains hidden or 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. |
Author
iamxwk
commented
Mar 8, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment