Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AdminHttpViewController
  • AdminLayoutHttpControllerResponse
  • HttpContextReader
  • HttpDispatcher
  • HttpResponseProcessor
  • HttpService
  • HttpViewController
  • HttpViewControllerRegistry

Class HttpDispatcher

Class HttpDispatcher

HttpDispatcher implements HttpDispatcherInterface
Package: Http
Category: System
Implements: HttpDispatcherInterface
Located at Services/System/Http/HttpDispatcher.inc.php

Methods summary

public
# __construct( HttpContextReaderInterface $httpContextReader, HttpViewControllerFactoryInterface $httpViewControllerFactory )

Initializes the http dispatcher.

Initializes the http dispatcher.

Parameters

$httpContextReader
$httpViewControllerFactory

Throws

MissingControllerNameException
If no controller is found.
public
# dispatch( HttpContextInterface $httpContext )

Dispatches the current http request. If the http request is valid and can get handled by a controller class, the controllers ::proceed method is invoked by the dispatcher. Otherwise, the method will throw a missing controller name exception.

Dispatches the current http request. If the http request is valid and can get handled by a controller class, the controllers ::proceed method is invoked by the dispatcher. Otherwise, the method will throw a missing controller name exception.

Parameters

$httpContext
Object which holds information about the current http context.

Throws

MissingControllerNameException
When the http request context is invalid.

Implementation of

HttpDispatcherInterface::dispatch()

Properties summary

protected HttpContextReaderInterface $httpContextReader
#
protected HttpViewControllerFactoryInterface $httpViewControllerFactory
#
API documentation generated by ApiGen