Fix regression introduced in https://github.com/ezsystems/ezplatform-admin-ui/commit/157264ea7ad16e7ffd88f621814df11048f31b08
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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