Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

DefaultAuthenticationSuccessHandler.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\MVC\Symfony\Security\Authentication;
8
9 use eZ\Publish\Core\MVC\ConfigResolverInterface;
10 use Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler as BaseSuccessHandler;
11
12 class DefaultAuthenticationSuccessHandler extends BaseSuccessHandler
13 {
19 public function setConfigResolver(ConfigResolverInterface $configResolver)
20 {
21 $defaultPage = $configResolver->getParameter('default_page');
22 if ($defaultPage !== null) {
23 $this->options['default_target_path'] = $defaultPage;
24 }
25 }
26 }
eZ\Publish\Core\MVC\Symfony\Security\Authentication\DefaultAuthenticationSuccessHandler
Definition: DefaultAuthenticationSuccessHandler.php:13
eZ\Publish\Core\MVC\Symfony\Security\Authentication\DefaultAuthenticationSuccessHandler\setConfigResolver
setConfigResolver(ConfigResolverInterface $configResolver)
Injects the ConfigResolver to potentially override default_target_path for redirections after authent...
Definition: DefaultAuthenticationSuccessHandler.php:19
eZ\Publish\Core\MVC\ConfigResolverInterface
Interface for config resolvers.
Definition: ConfigResolverInterface.php:19
eZ\Publish\Core\MVC\ConfigResolverInterface\getParameter
getParameter($paramName, $namespace=null, $scope=null)
Returns value for $paramName, in $namespace.
eZ\Publish\Core\MVC\Symfony\Security\Authentication
Definition: AnonymousAuthenticationProvider.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.