ICanBoogie
  • Documentation
  • API Reference
  • HTTP v2.4.0
Namespaces
  • ICanBoogie
    • Exception
    • HTTP
      • Dispatcher
      • Headers
      • Request
Classes
  • CallableDispatcher
  • Dispatcher
  • File
  • FileInfo
  • FileList
  • Headers
  • Helpers
  • RedirectResponse
  • Request
  • Response
  • Status
  • WeightedDispatcher
Interfaces
  • DispatcherInterface
  • Exception
Exceptions
  • DispatcherNotDefined
  • ForceRedirect
  • MethodNotSupported
  • NotFound
  • ServiceUnavailable
  • StatusCodeNotValid

Class Helpers

Patchable helpers of the HTTP package.

The following helpers can be patched:

  • dispatch
  • get_dispatcher
Namespace: ICanBoogie\HTTP
Located at Helpers.php

Methods summary

public static __callStatic( string $name, array $arguments ) : mixed

Calls the callback of a patchable function.

Calls the callback of a patchable function.

Parameters

$name
Name of the function.
$arguments
Arguments.

Returns

mixed
public static patch( string $name, callable $callback ) : callable

Patches a patchable function.

Patches a patchable function.

Parameters

$name
Name of the function.
$callback
Callback.

Returns

callable
Previous callable.

Throws

LogicException
in attempt to patch an undefined function.
HTTP v2.4.0 – Check on GitHub – API documentation generated by ApiGen