Skip to content

Commit

Permalink
WIP: SF5 Compatibility, Drop FOS USER
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPixxel committed May 23, 2023
1 parent 5f853b2 commit f27d188
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/Controller/DebugController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\User\UserInterface;
use Twig\Environment;
use Twig\Error\LoaderError;
Expand All @@ -43,8 +42,6 @@ class DebugController extends AbstractController
/**
* Debug of a Partial Email Mjml Template Block
*
* @Route("/{emailCode}/mjml/{tmplCode}", name="badpixxel_sendinblue_tmpl_debug_mjml")
*
* @param KernelInterface $kernel
* @param Environment $twig
* @param Manager $manager
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/WebHooksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class WebHooksController extends AbstractController
*
* @return Response
*/
public function indexAction(Request $request, SmtpManager $smtpManager): Response
public function __invoke(Request $request, SmtpManager $smtpManager): Response
{
//==============================================================================
// Safety Check
Expand Down
7 changes: 3 additions & 4 deletions src/Resources/config/routing/debug.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

# Emails Templating Debug Routes
badpixxel_sendinblue_controllers:
resource: "@SendinblueBridgeBundle/Controller/"
type: annotation
prefix: /
badpixxel_sendinblue_tmpl_debug_mjml:
controller: BadPixxel\SendinblueBridge\Controller\DebugController:mjmlAction
prefix: /{emailCode}/mjml/{tmplCode}
2 changes: 1 addition & 1 deletion src/Resources/config/routing/webhooks.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Emails Events Webhooks
badpixxel_sendinblue_webhooks:
controller: BadPixxel\SendinblueBridge\Controller\WebHooksController
path: /sibwh
defaults: { _controller: SendinblueBridgeBundle:WebHooks:index }

0 comments on commit f27d188

Please sign in to comment.