class ThrottleApi implements ExtenderInterface

Methods

set(string $name, callable|string $callback)

<p>Add a new throttler (or override one with the same name).</p>

remove(string $name)

<p>Remove a throttler registered with this name.</p>

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

No description

Details

ThrottleApi set(string $name, callable|string $callback)

<p>Add a new throttler (or override one with the same name).</p>

Parameters

string $name
callable|string $callback

Return Value

ThrottleApi

ThrottleApi remove(string $name)

<p>Remove a throttler registered with this name.</p>

Parameters

string $name

Return Value

ThrottleApi

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

Parameters

Container $container
Extension $extension

Return Value

void