Mercurial > hg > isophonics-drupal-site
comparison index.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * The PHP page that serves all page requests on a Drupal installation. | |
6 * | |
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 use Drupal\Core\DrupalKernel; | |
12 use Symfony\Component\HttpFoundation\Request; | |
13 | |
14 $autoloader = require_once 'autoload.php'; | |
15 | |
16 $kernel = new DrupalKernel('prod', $autoloader); | |
17 | |
18 $request = Request::createFromGlobals(); | |
19 $response = $kernel->handle($request); | |
20 $response->send(); | |
21 | |
22 $kernel->terminate($request, $response); |