interface BindingRegistrar (View source)

Methods

void
bind(string $key, string|callable $binder)

Add a new route parameter binder.

getBindingCallback(string $key)

Get the binding callback for a given binding.

Details

void bind(string $key, string|callable $binder)

Add a new route parameter binder.

Parameters

string $key
string|callable $binder

Return Value

void

Closure getBindingCallback(string $key)

Get the binding callback for a given binding.

Parameters

string $key

Return Value

Closure