2001-03-10 11:07:52 +00:00
|
|
|
<?php
|
2000-05-18 19:51:59 +00:00
|
|
|
|
2004-08-21 06:42:38 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* The PHP page that serves all page requests on a Drupal installation.
|
|
|
|
*
|
2007-12-26 08:46:48 +00:00
|
|
|
* All Drupal code is released under the GNU General Public License.
|
2011-10-31 04:05:57 +00:00
|
|
|
* See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
|
2004-08-21 06:42:38 +00:00
|
|
|
*/
|
|
|
|
|
2014-06-26 10:47:01 +00:00
|
|
|
use Drupal\Core\DrupalKernel;
|
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
2014-04-25 19:13:44 +00:00
|
|
|
|
2015-03-11 08:31:22 +00:00
|
|
|
$autoloader = require_once 'autoload.php';
|
2014-06-26 10:47:01 +00:00
|
|
|
|
2015-06-03 17:06:46 +00:00
|
|
|
$kernel = new DrupalKernel('prod', $autoloader);
|
2014-06-18 07:07:06 +00:00
|
|
|
|
2015-06-03 17:06:46 +00:00
|
|
|
$request = Request::createFromGlobals();
|
|
|
|
$response = $kernel->handle($request);
|
|
|
|
$response->send();
|
|
|
|
|
|
|
|
$kernel->terminate($request, $response);
|