Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Jan 14, 2019
1 parent 244a586 commit a5d6842
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public/index.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php declare(strict_types=1);

chdir(dirname(__DIR__));
use App\Http\App;
use Sunrise\Http\Factory\ServerRequestFactory;

chdir(dirname(__DIR__));
require_once 'vendor/autoload.php';

$container = require 'config/container.php';

$application = $container->get(App\Http\App::class);

$application->run(Sunrise\Http\Factory\ServerRequestFactory::fromGlobals());
$application = $container->get(App::class);
$application->run(ServerRequestFactory::fromGlobals());

exit(1);

0 comments on commit a5d6842

Please sign in to comment.