diff --git a/Controller/CaptchaController.php b/Controller/CaptchaController.php index ecb293f..8d8d83e 100644 --- a/Controller/CaptchaController.php +++ b/Controller/CaptchaController.php @@ -2,7 +2,7 @@ namespace Gregwar\CaptchaBundle\Controller; -use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; @@ -11,7 +11,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; * * @author Jeremy Livingston */ -class CaptchaController extends Controller +class CaptchaController extends AbstractController { /** * Action that is used to generate the captcha, save its code, and stream the image diff --git a/Resources/config/routing/routing.yml b/Resources/config/routing/routing.yml index e2103cc..2303bb4 100644 --- a/Resources/config/routing/routing.yml +++ b/Resources/config/routing/routing.yml @@ -1,3 +1,3 @@ gregwar_captcha.generate_captcha: path: /generate-captcha/{key} - defaults: { _controller: GregwarCaptchaBundle:Captcha:generateCaptcha } + defaults: { _controller: Gregwar\CaptchaBundle\Controller\CaptchaController::generateCaptchaAction }