index.php 839 Bytes
Newer Older
Dries's avatar
 
Dries committed
1
<?php
Dries's avatar
Dries committed
2

3
use Drupal\Core\DrupalKernel;
4
use Symfony\Component\HttpFoundation\Request;
5

Dries's avatar
 
Dries committed
6 7 8 9 10 11
/**
 * @file
 * The PHP page that serves all page requests on a Drupal installation.
 *
 * The routines here dispatch control to the appropriate handler, which then
 * prints the appropriate page.
12 13
 *
 * All Drupal code is released under the GNU General Public License.
14
 * See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
Dries's avatar
 
Dries committed
15 16
 */

17 18 19
/**
 * Root directory of Drupal installation.
 */
20
define('DRUPAL_ROOT', getcwd());
21

neclimdul's avatar
WIP  
neclimdul committed
22
// Bootstrap the lowest level of what we need.
23
require_once DRUPAL_ROOT . '/core/includes/bootstrap.inc';
24
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
neclimdul's avatar
WIP  
neclimdul committed
25 26 27

// A request object from the HTTPFoundation to tell us about the request.
$request = Request::createFromGlobals();
28

29
$kernel = new DrupalKernel();
30
$kernel->handle($request)->send();