Fix classname
This commit is contained in:
parent
8dca792ef8
commit
a06cce6b54
1 changed files with 4 additions and 1 deletions
|
@ -3,8 +3,11 @@
|
|||
namespace EmotionHero\Api;
|
||||
|
||||
use Exception;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
||||
use TokenBucket\Storage\PDO;
|
||||
use TokenBucket\TokenBucket;
|
||||
|
||||
/**
|
||||
* Description of ThrottleMiddleware
|
||||
|
@ -45,7 +48,7 @@ class ThrottleMiddleware implements HttpKernelInterface
|
|||
|
||||
if($limit_requests)
|
||||
{
|
||||
$storage = new PDOStorage($this->options['pdo']);
|
||||
$storage = new PDO($this->options['pdo']);
|
||||
// Define the bucket
|
||||
$bucket_options = array(
|
||||
'capacity' => $tokens,
|
||||
|
|
Loading…
Reference in a new issue