nuth.ch/public/index.php

19 lines
559 B
PHP
Raw Permalink Normal View History

2019-03-27 07:55:08 +00:00
<?php
use SilverStripe\Control\HTTPApplication;
use SilverStripe\Control\HTTPRequestBuilder;
use SilverStripe\Core\CoreKernel;
use SilverStripe\Core\Startup\ErrorControlChainMiddleware;
// Find autoload.php
2019-04-10 10:50:48 +00:00
require __DIR__ . '/../vendor/autoload.php';
2019-03-27 07:55:08 +00:00
// Build request and detect flush
$request = HTTPRequestBuilder::createFromEnvironment();
// Default application
$kernel = new CoreKernel(BASE_PATH);
$app = new HTTPApplication($kernel);
$app->addMiddleware(new ErrorControlChainMiddleware($app));
$response = $app->handle($request);
2019-04-13 15:29:27 +00:00
$response->output();