Response

Response class Response extends Response (View source) Traits ResponseTrait

Response

Response class Response (View source) Methods __construct(string|null $message = null) Create a new response. string|null message() Get the response message. string __toString() Get the string representation of the message.

ResourceRegistrar::__construct()

void __construct(Router $router) Create a new resource registrar instance. Parameters Router $router Return Value void

ResourceRegistrar::singularParameters()

static void singularParameters(bool $singular = true) Set or unset the unmapped global parameters to singular. Parameters bool $singular Return Value void

ResourceRegistrar::setParameters()

static void setParameters(array $parameters = array()) Set the global parameter mapping. Parameters array $parameters Return Value void

ResourceRegistrar::register()

void register(string $name, string $controller, array $options = array()) Route a resource to a controller. Parameters string $name string $controller array $options Return Value void

ResourceRegistrar::getResourceWildcard()

string getResourceWildcard(string $value) Format a resource parameter for usage. Parameters string $value Return Value string

ResourceRegistrar::getResourceUri()

string getResourceUri(string $resource) Get the base resource URI for a given resource. Parameters string $resource Return Value string

ResourceRegistrar::getParameters()

static array getParameters() Get the global parameter map. Return Value array

ResourceRegistrar

ResourceRegistrar class ResourceRegistrar (View source) Methods void __construct(Router $router) Create a new resource registrar instance. void register(string $name, string $controller, array $options = array()) Route a resource to a controller. string getResourceUri(string $resource) Get the base resource URI for a given resource. string getResourceWildcard(string $value) Format a resource parameter for usage. static void singularParameters(bool $singular = true) Set