class ThrottleApi implements ExtenderInterface

Methods

set(string $name, $callback)

Add a new throttler (or override one with the same name).

remove(string $name)

Remove a throttler registered with this name.

extend(Container $container, Extension $extension = null)

No description

Details

ThrottleApi set(string $name, $callback)

Add a new throttler (or override one with the same name).

Parameters

string $name
$callback

Return Value

ThrottleApi

ThrottleApi remove(string $name)

Remove a throttler registered with this name.

Parameters

string $name

Return Value

ThrottleApi

extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension