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

3 4
use Drupal\Core\DrupalKernel;

Dries's avatar
 
Dries committed
5 6 7 8 9 10
/**
 * @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.
11 12
 *
 * All Drupal code is released under the GNU General Public License.
13
 * See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
Dries's avatar
 
Dries committed
14 15
 */

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

neclimdul's avatar
WIP  
neclimdul committed
21 22 23
use Symfony\Component\HttpFoundation\Request;

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

// A request object from the HTTPFoundation to tell us about the request.
$request = Request::createFromGlobals();
29 30 31 32 33
// Run our kernel, get a response, and send it.
$kernel = new DrupalKernel();
$kernel->handle($request)->send();

//$response = router_execute_request($request);
neclimdul's avatar
WIP  
neclimdul committed
34
// Output response.
35
//$response->send();