Skip to content

Commit

Permalink
Merge branch 'remove-pointless-environment-interface' into 3.x
Browse files Browse the repository at this point in the history
Closes #2625
Fixes #2548
  • Loading branch information
akrabat committed Apr 8, 2019
2 parents 14555a1 + b1c689b commit f0718f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Slim/Container.php
Expand Up @@ -21,7 +21,7 @@
* with these service keys configured and ready for use:
*
* - settings: an array or instance of \ArrayAccess
* - environment: an instance of \Slim\Interfaces\Http\EnvironmentInterface
* - environment: an instance of \Slim\Http\Environment
* - request: an instance of \Psr\Http\Message\ServerRequestInterface
* - response: an instance of \Psr\Http\Message\ResponseInterface
* - router: an instance of \Slim\Interfaces\RouterInterface
Expand All @@ -32,7 +32,7 @@
* - callableResolver: an instance of \Slim\Interfaces\CallableResolverInterface
*
* @property-read array $settings
* @property-read \Slim\Interfaces\Http\EnvironmentInterface $environment
* @property-read \Slim\Http\Environment $environment
* @property-read \Psr\Http\Message\ServerRequestInterface $request
* @property-read \Psr\Http\Message\ResponseInterface $response
* @property-read \Slim\Interfaces\RouterInterface $router
Expand Down
5 changes: 2 additions & 3 deletions Slim/DefaultServicesProvider.php
Expand Up @@ -20,7 +20,6 @@
use Slim\Http\Request;
use Slim\Http\Response;
use Slim\Interfaces\CallableResolverInterface;
use Slim\Interfaces\Http\EnvironmentInterface;
use Slim\Interfaces\InvocationStrategyInterface;
use Slim\Interfaces\RouterInterface;

Expand All @@ -39,9 +38,9 @@ public function register($container)
if (!isset($container['environment'])) {
/**
* This service MUST return a shared instance
* of \Slim\Interfaces\Http\EnvironmentInterface.
* of \Slim\Http\Environment.
*
* @return EnvironmentInterface
* @return Environment
*/
$container['environment'] = function () {
return new Environment($_SERVER);
Expand Down

0 comments on commit f0718f6

Please sign in to comment.