Fix classname

This commit is contained in:
Ruben 2016-10-05 21:48:44 +02:00
parent 8dca792ef8
commit a06cce6b54

View file

@ -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,