From 754310f488b0b283de4ba46c5718b3e8d15eb2ba Mon Sep 17 00:00:00 2001 From: Frederik Schubert Date: Wed, 23 Jan 2019 11:01:17 +0100 Subject: [PATCH 1/2] Fixed deprecation warning --- Controller/CaptchaController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 0f6cd709200d4e26424e54d7daabf45988939505 Mon Sep 17 00:00:00 2001 From: Frederik Schubert Date: Wed, 23 Jan 2019 11:01:56 +0100 Subject: [PATCH 2/2] Fixed deprecation warning --- Resources/config/routing/routing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }