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

3 4 5 6
/**
 * @file
 * The PHP page that serves all page requests on a Drupal installation.
 *
7
 * All Drupal code is released under the GNU General Public License.
8
 * See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
9 10
 */

11 12
use Drupal\Core\DrupalKernel;
use Symfony\Component\HttpFoundation\Request;
13

14
$autoloader = require_once 'autoload.php';
15

16
$kernel = new DrupalKernel('prod', $autoloader);
17

18 19 20 21 22
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();

$kernel->terminate($request, $response);