Skip to content

Commit

Permalink
ENH | remove deprecated and unnecessary ErrorControlChainMiddleware f…
Browse files Browse the repository at this point in the history
…rom index.php
  • Loading branch information
dnsl48 committed Jul 8, 2019
1 parent 928c115 commit 30377cb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use SilverStripe\Control\HTTPApplication;
use SilverStripe\Control\HTTPRequestBuilder;
use SilverStripe\Core\CoreKernel;
use SilverStripe\Core\Startup\ErrorControlChainMiddleware;

// Find autoload.php
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
Expand All @@ -22,6 +21,5 @@
// Default application
$kernel = new CoreKernel(BASE_PATH);
$app = new HTTPApplication($kernel);
$app->addMiddleware(new ErrorControlChainMiddleware($app));
$response = $app->handle($request);
$response->output();

0 comments on commit 30377cb

Please sign in to comment.