mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
12bd31f936
API Move environment / global / ini management into Environment class API Move getTempFolder into TempFolder class API Implement HTTPRequestBuilder / CLIRequestBuilder BUG Restore SS_ALLOWED_HOSTS check in original location API CoreKernel now requires $basePath to be passed in API Refactor installer.php to use application to bootstrap API move memstring conversion globals to Convert BUG Fix error in CoreKernel nesting not un-nesting itself properly.
19 lines
537 B
PHP
19 lines
537 B
PHP
<?php
|
|
|
|
use SilverStripe\Control\HTTPRequestBuilder;
|
|
use SilverStripe\Core\AppKernel;
|
|
use SilverStripe\Core\HTTPApplication;
|
|
use SilverStripe\Core\Startup\ErrorControlChainMiddleware;
|
|
|
|
require __DIR__ . '/src/includes/autoload.php';
|
|
|
|
// Build request and detect flush
|
|
$request = HTTPRequestBuilder::createFromEnvironment();
|
|
|
|
// Default application
|
|
$kernel = new AppKernel(BASE_PATH);
|
|
$app = new HTTPApplication($kernel);
|
|
$app->addMiddleware(new ErrorControlChainMiddleware($app));
|
|
$response = $app->handle($request);
|
|
$response->output();
|