Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AbstractHttpContextFactory
  • AbstractHttpViewControllerRegistryFactory
  • EnvironmentHttpContextFactory
  • EnvironmentHttpViewControllerRegistryFactory
  • HttpServiceFactory
  • HttpViewControllerFactory

Class HttpViewControllerFactory

Class HttpViewControllerFactory

HttpViewControllerFactory implements HttpViewControllerFactoryInterface
Package: Http\Factories
Category: System
Implements: HttpViewControllerFactoryInterface
Located at SystemServices/Http/Factories/HttpViewControllerFactory.inc.php

Methods summary

public
# __construct( HttpViewControllerRegistryInterface $httpViewControllerRegistry, HttpContextReaderInterface $httpContextReader, HttpResponseProcessorInterface $httpResponseProcessor )

Initialize the http view controller factory.

Initialize the http view controller factory.

Parameters

$httpViewControllerRegistry

Object which holds the registered controller class names.

$httpContextReader
Object to read the http context.
$httpResponseProcessor
Object to process the http response.
public HttpViewControllerInterface
# createController( string $controllerName )

Creates a new instance of a http view controller by the given controller name.

Creates a new instance of a http view controller by the given controller name.

Parameters

$controllerName
Expected name of controller (without 'Controller'-Suffix)

Returns

HttpViewControllerInterface
Created controller instance.

Throws

LogicException

If the controller is not registered in the http view controller registry or the controller does not implement the http view controller interface.

Implementation of

HttpViewControllerFactoryInterface::createController()
protected string
# _getControllerClassName( string $controllerName )

Returns the class name of a http controller by the given controller name.

Returns the class name of a http controller by the given controller name.

Parameters

$controllerName
Name of the http controller class.

Returns

string
Class name of the http controller.

Throws

LogicException
When the found controller class does not implement the http view controller interface.
protected ContentViewInterface
# _createControllerContentView( string $controllerName )

Creates and returns the content view for a http view controller by the controller name.

Creates and returns the content view for a http view controller by the controller name.

Parameters

$controllerName
Name of the http controller class.

Returns

ContentViewInterface
Content view instance for the http view controller.

Throws

LogicException
When the content view does not implement the content view interface.

Properties summary

protected HttpViewControllerRegistryInterface $httpViewControllerRegistry
#
protected HttpContextReaderInterface $httpContextReader
#
protected HttpResponseProcessorInterface $httpResponseProcessor
#
API documentation generated by ApiGen