ICanBoogie
  • Documentation
  • API Reference
  • HTTP 3.0.x
Namespaces
  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher
Classes
  • CallableDispatcher
  • DispatcherProvider
  • File
  • FileInfo
  • FileList
  • FileResponse
  • Headers
  • ProvideDispatcher
  • RedirectResponse
  • Request
  • RequestDispatcher
  • RequestOptionsMapper
  • RequestRange
  • Response
  • Status
  • WeightedDispatcher
Interfaces
  • Dispatcher
  • Exception
  • FileOptions
  • RequestMethods
  • RequestOptions
  • ResponseStatus
  • SecurityError
Exceptions
  • AuthenticationRequired
  • ClientError
  • DispatcherNotDefined
  • DispatcherProviderNotDefined
  • ForceRedirect
  • MethodNotSupported
  • NotFound
  • PermissionRequired
  • ServerError
  • ServiceUnavailable
  • StatusCodeNotValid

Class DispatcherProvider

Provides a ICanBoogie\HTTP\Dispatcher instance.

Namespace: ICanBoogie\HTTP
Located at DispatcherProvider.php

Methods summary

public static defined( void ) : callable|null

Return the current provider, or null if there is none.

Return the current provider, or null if there is none.

Returns

callable|null
public static define( callable $provider ) : callable|null

Define a ICanBoogie\HTTP\Dispatcher provider.

Define a ICanBoogie\HTTP\Dispatcher provider.

Parameters

$provider

Returns

callable|null
The previous provider, or null if none was defined.
public static undefine( void )

Undefine the current ICanBoogie\HTTP\Dispatcher provider.

Undefine the current ICanBoogie\HTTP\Dispatcher provider.

public static provide( void ) : ICanBoogie\HTTP\Dispatcher

Return a ICanBoogie\HTTP\Dispatcher instance using the current provider.

Return a ICanBoogie\HTTP\Dispatcher instance using the current provider.

Returns

ICanBoogie\HTTP\Dispatcher

Throws

ICanBoogie\HTTP\DispatcherProviderNotDefined
if no provider is defined.
HTTP 3.0.x – Check on GitHub – API documentation generated by ApiGen