Class Container
Slim's default DI container is Pimple.
Slim\App expects a container that implements Psr\Container\ContainerInterface with these service keys configured and ready for use: - settings: an array or instance of \ArrayAccess - environment: an instance of \Slim\Interfaces\Http\EnvironmentInterface - request: an instance of \Psr\Http\Message\ServerRequestInterface - response: an instance of \Psr\Http\Message\ResponseInterface - router: an instance of \Slim\Interfaces\RouterInterface - foundHandler: an instance of \Slim\Interfaces\InvocationStrategyInterface - errorHandler: a callable with the signature: function($request, $response, $exception) - notFoundHandler: a callable with the signature: function($request, $response) - notAllowedHandler: a callable with the signature: function($request, $response, $allowedHttpMethods) - callableResolver: an instance of \Slim\Interfaces\CallableResolverInterface
- Pimple\Container
-
Slim\Container
implements
Interop\Container\ContainerInterface
Methods summary
public
|
|
public
mixed
|
|
public
boolean
|
|
public
|
|
public
|