ICanBoogie
  • Documentation
  • API Reference
  • HTTP master
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

Whether a provider if defined.

Whether a provider if defined.

Returns

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

Defines the ICanBoogie\HTTP\Dispatcher provider.

Defines the ICanBoogie\HTTP\Dispatcher provider.

Parameters

$provider

Returns

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

Undefine the ICanBoogie\HTTP\Dispatcher provider.

Undefine the ICanBoogie\HTTP\Dispatcher provider.

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

Returns a ICanBoogie\HTTP\Dispatcher instance using the provider.

Returns a ICanBoogie\HTTP\Dispatcher instance using the provider.

Returns

ICanBoogie\HTTP\Dispatcher

Throws

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