$container
$container : \Pimple\Container
Container
Not Allowed Handler
Enhanced version of \Slim\Handlers\NotAllowed.
It outputs a simple message in either JSON, XML, or HTML based on the Accept header.
init() : \Charcoal\App\Handler\AbstractHandler
Initialize the AbstractHandler object.
Chainable
setDependencies(\Pimple\Container $container) : \Charcoal\App\Handler\AbstractHandler
Inject dependencies from a Pimple Container.
AppConfig $appConfig
— The application's configuration.UriInterface $baseUri
— A base URI.ViewInterface $view
— A view instance.\Pimple\Container | $container | A dependencies container instance. |
Chainable
setContainer(\Pimple\Container $container) : \Charcoal\App\Handler\AbstractHandler
Set container for use with the template controller
\Pimple\Container | $container | A dependencies container instance. |
Chainable
setBaseUrl(string|\Psr\Http\Message\UriInterface $url) : \Charcoal\App\Handler\AbstractHandler
Set the base URL (home page).
string|\Psr\Http\Message\UriInterface | $url | A URL to the base URL. |
Chainable
__invoke(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array<mixed,string> $methods) : \Psr\Http\Message\ResponseInterface
Invoke "Not Allowed" Handler
\Psr\Http\Message\ServerRequestInterface | $request | The most recent Request object. |
\Psr\Http\Message\ResponseInterface | $response | The most recent Response object. |
array<mixed,string> | $methods | Allowed HTTP methods. |
setMethods(array $methods) : \Charcoal\App\Handler\NotAllowed
Set the HTTP methods allowed by the current request.
array | $methods | Case-sensitive array of methods. |
Chainable