Skip to content

Commit

Permalink
update framework
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Aug 9, 2020
1 parent a359a31 commit 69ad2bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
}
],
"require": {
"php": ">=7.0",
"psx/framework": "^4.0"
"php": ">=7.2",
"psx/framework": "^5.0-RC2"
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"phpunit/phpunit": "^8.0",
"guzzlehttp/guzzle": "^6.3"
},
"bin": ["bin/psx"],
Expand Down
6 changes: 3 additions & 3 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* PSX is a open source PHP framework to develop RESTful APIs.
* For the current version and informations visit <http://phpsx.org>
*
* Copyright 2010-2016 Christoph Kappestein <k42b3.x@gmail.com>
* Copyright 2010-2020 Christoph Kappestein <christoph.kappestein@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,7 @@

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

$engine = new \PSX\Framework\Environment\WebServer\Engine();
$environment = new \PSX\Framework\Environment\Environment($container, $engine);
$engine = null;
$environment = \PSX\Framework\Environment\Environment::fromContainer($container, $engine);

return $environment->serve();

0 comments on commit 69ad2bc

Please sign in to comment.