src/Http/RateLimit/Handler.php
public function extend($throttle)
    {
        if (is_callable($throttle)) {
            $throttle = call_user_func($throttle, $this->container);
        }

        $this->throttles->push($throttle);
    }
public function extend($throttle)
    {
        if (is_callable($throttle)) {
            $throttle = call_user_func($throttle, $this->container);
        }

        $this->throttles->push($throttle);
    }
public function extend ( $ throttle ) { if ( is_callable ( $ throttle ) ) { $ throttle = call_user_func ( $ throttle , $ this -> container ) ; } $ this -> throttles -> push ( $ throttle ) ; }
Extend the rate limiter by adding a new throttle.

@param callable|\Dingo\Api\Http\RateLimit\Throttle $throttle

@return void
Extend the rate limiter by adding a new throttle .