Skip to content

Instantly share code, notes, and snippets.

@patrickallaert
Last active July 11, 2022 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickallaert/15cd0939877c995d28b2f4f45ca59577 to your computer and use it in GitHub Desktop.
Save patrickallaert/15cd0939877c995d28b2f4f45ca59577 to your computer and use it in GitHub Desktop.
--- a/bundle/DependencyInjection/Compiler/SecurityLoginPass.php
+++ b/bundle/DependencyInjection/Compiler/SecurityLoginPass.php
@@ -11,7 +11,6 @@
use EzSystems\EzPlatformAdminUi\Security\Authentication\RedirectToDashboardAuthenticationSuccessHandler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Exception\OutOfBoundsException;
class SecurityLoginPass implements CompilerPassInterface
{
@@ -22,12 +21,7 @@
{
$successHandlerDef = $container->getDefinition('security.authentication.success_handler');
$successHandlerDef->setClass(RedirectToDashboardAuthenticationSuccessHandler::class);
-
- try {
- $successHandlerDef->setArgument('$logger', $successHandlerDef->getArgument(2));
- } catch (OutOfBoundsException $e) {
- }
-
+ $successHandlerDef->setArgument('$logger', $successHandlerDef->getArgument(2));
$successHandlerDef->setArgument('$siteAccessGroups', $container->getParameter('ezpublish.siteaccess.groups'));
$successHandlerDef->setArgument('$defaultTargetPath', 'ezplatform.dashboard');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment