Skip to content

Commit

Permalink
use fusio 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jan 2, 2018
1 parent cb49181 commit f113e34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"require": {
"php": ">=7.0",
"fusio/impl": "^1.0",
"fusio/impl": "^2.0",
"symfony/dotenv": "^3.4"
},
"require-dev": {
Expand Down
8 changes: 3 additions & 5 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@

$container = require_once(__DIR__ . '/../container.php');

PSX\Framework\Bootstrap::setupEnvironment($container->get('config'));
$engine = new \PSX\Framework\Environment\WebServer\Engine();
$environment = new \PSX\Framework\Environment\Environment($container, $engine);

$request = $container->get('request_factory')->createRequest();
$response = $container->get('response_factory')->createResponse();

$container->get('dispatch')->route($request, $response);
return $environment->serve();

0 comments on commit f113e34

Please sign in to comment.