Class HttpViewControllerFactory
| category |
System |
|---|---|
| package |
Http |
| subpackage |
Factories |
| implements |
HttpViewControllerFactoryInterface |
__construct(\HttpViewControllerRegistryInterface $httpViewControllerRegistry, \HttpContextReaderInterface $httpContextReader, \HttpResponseProcessorInterface $httpResponseProcessor)
\HttpViewControllerRegistryInterfaceObject which holds the registered controller class names.
_createControllerContentView(string $controllerName) : \ContentViewInterface
| throws |
When the content view does not implement the content view interface. |
|---|
stringName of the http controller class.
\ContentViewInterfaceContent view instance for the http view controller.
_getControllerClassName(string $controllerName) : string
| throws |
When the found controller class does not implement the http view controller interface. |
|---|
stringName of the http controller class.
stringClass name of the http controller.
createController(string $controllerName) : \HttpViewControllerInterface
| throws |
If the controller is not registered in the http view controller registry or the controller does not implement the http view controller interface. |
|---|
stringExpected name of controller (without 'Controller'-Suffix)
\HttpViewControllerInterfaceCreated controller instance.
httpViewControllerRegistry : \HttpViewControllerRegistryInterface
httpContextReader : \HttpContextReaderInterface
httpResponseProcessor : \HttpResponseProcessorInterface