/** * Gets the 'security.firewall.map.context.blog_security' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Bundle\SecurityBundle\Security\FirewallContext A Symfony\Bundle\SecurityBundle\Security\FirewallContext instance. */ protected function getSecurity_Firewall_Map_Context_BlogSecurityService() { $a = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE); $b = $this->get('security.context'); $c = $this->get('security.user.provider.concrete.blog_users'); $d = $this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE); $e = $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE); $f = $this->get('http_kernel'); $g = $this->get('security.authentication.manager'); $h = $this->get('security.access.decision_manager'); $i = new \Symfony\Component\HttpFoundation\RequestMatcher('^/account-settings'); $j = new \Symfony\Component\Security\Http\AccessMap(); $j->add($i, array(0 => 'ROLE_USER'), NULL); $k = new \Symfony\Component\Security\Http\HttpUtils($e, $e); $l = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $c), 'k34po3j4po3j433k4p3', 'blog_security', array('lifetime' => 31536000, 'path' => '/', 'domain' => NULL, 'remember_me_parameter' => 'login[remember_me]', 'name' => 'REMEMBERME', 'secure' => false, 'httponly' => true, 'always_remember_me' => false), $a); $m = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $k, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($k, 'blog_index'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => '_logout')); $m->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler()); $m->addHandler($l); $n = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($k, array()); $n->setOptions(array('login_path' => 'blog_login', 'default_target_path' => 'blog_index', 'always_use_default_target_path' => false, 'target_path_parameter' => '_target_path', 'use_referer' => false)); $n->setProviderKey('blog_security'); $o = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $k, array(), $a); $o->setOptions(array('login_path' => 'blog_login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path')); $p = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $g, new \Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy('migrate'), $k, 'blog_security', $n, $o, array('check_path' => '_check_path', 'username_parameter' => 'login[username]', 'password_parameter' => 'login[password]', 'use_forward' => false, 'require_previous_session' => true, 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $a, $d, NULL); $p->setRememberMeServices($l); return $this->services['security.firewall.map.context.blog_security'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($j, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $c), 'blog_security', $a, $d), 2 => $m, 3 => $p, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($b, $l, $g, $a, $d, true), 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '54f415ae2aebe', $a, $g), 6 => new \Symfony\Component\Security\Http\Firewall\SwitchUserListener($b, $c, $this->get('security.user_checker'), 'blog_security', $h, $a, '_switch_user', 'ROLE_ALLOWED_TO_SWITCH', $d), 7 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $h, $j, $g)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $k, 'blog_security', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($f, $k, 'blog_login', false), NULL, NULL, $a)); }
/** * Gets the 'security.firewall.map.context.main' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Bundle\SecurityBundle\Security\FirewallContext A Symfony\Bundle\SecurityBundle\Security\FirewallContext instance. */ protected function getSecurity_Firewall_Map_Context_MainService() { $a = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE); $b = $this->get('security.context'); $c = $this->get('fos_user.user_provider.username'); $d = $this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE); $e = $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE); $f = $this->get('http_kernel'); $g = $this->get('security.authentication.manager'); $h = new \Symfony\Component\Security\Http\AccessMap(); $i = new \Symfony\Component\Security\Http\HttpUtils($e, $e); $j = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $c), 'ThisTokenIsNotSoSecretChangeIt', 'main', array('name' => 'REMEMBERME', 'lifetime' => 31536000, 'path' => '/', 'domain' => NULL, 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $a); $k = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $i, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($i, '/platform'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => 'fos_user_security_logout')); $k->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler()); $k->addHandler($j); $l = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($i, array('login_path' => 'fos_user_security_login', 'always_use_default_target_path' => false, 'default_target_path' => '/', 'target_path_parameter' => '_target_path', 'use_referer' => false)); $l->setProviderKey('main'); $m = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $g, $this->get('security.authentication.session_strategy'), $i, 'main', $l, new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $i, array('login_path' => 'fos_user_security_login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path'), $a), array('check_path' => 'fos_user_security_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $a, $d, NULL); $m->setRememberMeServices($j); return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($h, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $c), 'main', $a, $d), 2 => $k, 3 => $m, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($b, $j, $g, $a, $d), 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '566ec2a20fd3c', $a), 6 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $this->get('security.access.decision_manager'), $h, $g)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $i, 'main', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($f, $i, 'fos_user_security_login', false), NULL, NULL, $a)); }
/** * Gets the 'security.firewall.map.context.main' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Bundle\SecurityBundle\Security\FirewallContext A Symfony\Bundle\SecurityBundle\Security\FirewallContext instance. */ protected function getSecurity_Firewall_Map_Context_MainService() { $a = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE); $b = $this->get('security.token_storage'); $c = $this->get('fos_user.user_provider.username'); $d = $this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE); $e = $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE); $f = $this->get('http_kernel'); $g = $this->get('security.authentication.manager'); $h = new \Symfony\Component\HttpFoundation\RequestMatcher('^/admin/*', NULL, array(), array(0 => '127.0.0.1')); $i = new \Symfony\Component\HttpFoundation\RequestMatcher('^/admin/users', NULL, array(), array(0 => '127.0.0.1')); $j = new \Symfony\Component\HttpFoundation\RequestMatcher('^/admin/annonce', NULL, array(), array(0 => '127.0.0.1')); $k = new \Symfony\Component\HttpFoundation\RequestMatcher('^/admin/alerte', NULL, array(), array(0 => '127.0.0.1')); $l = new \Symfony\Component\HttpFoundation\RequestMatcher('^/_internal', NULL, array(), array(0 => '127.0.0.1')); $m = new \Symfony\Component\Security\Http\AccessMap(); $m->add($h, array(0 => 'ROLE_SUPER_ADMIN'), NULL); $m->add($i, array(0 => 'ROLE_EXPERTINFO'), NULL); $m->add($j, array(0 => 'ROLE_ADMIN'), NULL); $m->add($k, array(0 => 'ROLE_ADMIN'), NULL); $m->add($l, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL); $n = new \Symfony\Component\Security\Http\HttpUtils($e, $e); $o = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $c), 'ThisTokenIsNotSoSecretChangeIt', 'main', array('name' => 'REMEMBERME', 'lifetime' => 31536000, 'path' => '/', 'domain' => NULL, 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $a); $p = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $n, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($n, '/incident'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => 'fos_user_security_logout')); $p->addHandler($o); $q = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($n, array()); $q->setOptions(array('login_path' => 'fos_user_security_login', 'default_target_path' => '/profile', 'always_use_default_target_path' => false, 'target_path_parameter' => '_target_path', 'use_referer' => false)); $q->setProviderKey('main'); $r = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $n, array(), $a); $r->setOptions(array('login_path' => 'fos_user_security_login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path')); $s = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $g, $this->get('security.authentication.session_strategy'), $n, 'main', $q, $r, array('check_path' => 'fos_user_security_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $a, $d, NULL); $s->setRememberMeServices($o); return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($m, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $c), 'main', $a, $d), 2 => $p, 3 => $s, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($b, $o, $g, $a, $d, true), 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '567b091f403fc1.77711390', $a, $g), 6 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $this->get('security.access.decision_manager'), $m, $g)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $n, 'main', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($f, $n, 'fos_user_security_login', false), NULL, NULL, $a, false)); }
/** * Gets the 'security.firewall.map.context.back_office' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Bundle\SecurityBundle\Security\FirewallContext A Symfony\Bundle\SecurityBundle\Security\FirewallContext instance */ protected function getSecurity_Firewall_Map_Context_BackOfficeService() { $a = $this->get('security.token_storage'); $b = $this->get('security.user.provider.concrete.bigfoot'); $c = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE); $d = $this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE); $e = $this->get('security.http_utils'); $f = $this->get('http_kernel'); $g = $this->get('security.authentication.manager'); $h = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $b), 'ThisTokenIsNotSoSecretChangeIt', 'back_office', array('lifetime' => 31536000, 'path' => '/', 'domain' => NULL, 'name' => 'REMEMBERME', 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $c); $i = new \Symfony\Component\Security\Http\Firewall\LogoutListener($a, $e, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($e, '/admin/'), array('csrf_parameter' => '_csrf_token', 'csrf_token_id' => 'logout', 'logout_path' => '/admin/logout')); $i->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler()); $i->addHandler($h); $j = new \Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy('migrate'); $k = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($e, array()); $k->setOptions(array('login_path' => '/admin/login', 'always_use_default_target_path' => true, 'default_target_path' => '/admin/', 'target_path_parameter' => '_target_path', 'use_referer' => false)); $k->setProviderKey('back_office'); $l = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $e, array(), $c); $l->setOptions(array('login_path' => '/admin/login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path')); $m = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($a, $g, $j, $e, 'back_office', $k, $l, array('check_path' => '/admin/login_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'csrf_token_id' => 'authenticate', 'post_only' => true), $c, $d, NULL); $m->setRememberMeServices($h); return $this->services['security.firewall.map.context.back_office'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => $this->get('security.channel_listener'), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($a, array(0 => $b, 1 => $this->get('security.user.provider.concrete.in_memory')), 'back_office', $c, $d), 2 => $i, 3 => $m, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($a, $h, $g, $c, $d, true, $j), 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($a, '57d087b26ebd46.63569744', $c, $g), 6 => $this->get('security.access_listener')), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($a, $this->get('security.authentication.trust_resolver'), $e, 'back_office', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($f, $e, '/admin/login', false), NULL, NULL, $c, false)); }
/** * Gets the 'security.firewall.map.context.main' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Bundle\SecurityBundle\Security\FirewallContext A Symfony\Bundle\SecurityBundle\Security\FirewallContext instance. */ protected function getSecurity_Firewall_Map_Context_MainService() { $a = $this->get('security.token_storage'); $b = $this->get('fos_user.user_provider.username'); $c = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE); $d = $this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE); $e = $this->get('security.http_utils'); $f = $this->get('http_kernel'); $g = $this->get('security.authentication.manager'); $h = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $b), '0932949f3a05d863083447fa8cd5b2aaa4edbc4b', 'main', array('name' => 'REMEMBERME', 'lifetime' => 31536000, 'path' => '/', 'domain' => NULL, 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $c); $i = new \Symfony\Component\Security\Http\Firewall\LogoutListener($a, $e, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($e, '/blog'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => 'fos_user_security_logout')); $i->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler()); $i->addHandler($h); $j = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($e, array()); $j->setOptions(array('login_path' => 'fos_user_security_login', 'always_use_default_target_path' => false, 'default_target_path' => '/', 'target_path_parameter' => '_target_path', 'use_referer' => false)); $j->setProviderKey('main'); $k = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $e, array(), $c); $k->setOptions(array('login_path' => 'fos_user_security_login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path')); $l = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($a, $g, $this->get('security.authentication.session_strategy'), $e, 'main', $j, $k, array('check_path' => 'fos_user_security_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $c, $d, NULL); $l->setRememberMeServices($h); return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => $this->get('security.channel_listener'), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($a, array(0 => $b), 'main', $c, $d), 2 => $i, 3 => $l, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($a, $h, $g, $c, $d, true), 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($a, '564cc1a61f24b2.24773552', $c, $g), 6 => $this->get('security.access_listener')), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($a, $this->get('security.authentication.trust_resolver'), $e, 'main', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($f, $e, 'fos_user_security_login', false), NULL, NULL, $c, false)); }
protected function getSecurity_Firewall_Map_Context_MainService() { $a = $this->get('security.http_utils'); $b = $this->get('mautic.user.provider'); $c = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE); $d = $this->get('security.context'); $e = $this->get('mautic.security.authentication_handler'); $f = $this->get('security.authentication.manager'); $g = $this->get('event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE); $h = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $b), 'ab90c625f80f8126309fec4fae1da7fff78001dd', 'main', array('lifetime' => '31536000', 'path' => '/', 'domain' => NULL, 'name' => 'REMEMBERME', 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $c); $i = new \Symfony\Component\Security\Http\Firewall\LogoutListener($d, $a, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($a, '/s/login'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => '/s/logout')); $i->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler()); $i->addHandler($this->get('mautic.security.logout_handler')); $i->addHandler($h); $j = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($d, $f, $this->get('security.authentication.session_strategy'), $a, 'main', new \Symfony\Component\Security\Http\Authentication\CustomAuthenticationSuccessHandler($e, array('login_path' => '/s/login', 'always_use_default_target_path' => false, 'default_target_path' => '/', 'target_path_parameter' => '_target_path', 'use_referer' => false), 'main'), new \Symfony\Component\Security\Http\Authentication\CustomAuthenticationFailureHandler($e, array('login_path' => '/s/login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path')), array('check_path' => '/s/login_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $c, $g, $this->get('form.csrf_provider')); $j->setRememberMeServices($h); return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => $this->get('security.channel_listener'), 1 => $this->get('security.context_listener.1'), 2 => $i, 3 => $j, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($d, $h, $f, $c, $g, true), 5 => $this->get('security.access_listener')), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($d, $this->get('security.authentication.trust_resolver'), $a, 'main', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($this->get('http_kernel'), $a, '/s/login', false), NULL, NULL, $c)); }
protected function getSecurity_Firewall_Map_Context_MainService() { $a = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE); $b = $this->get('security.context'); $c = $this->get('fos_user.user_provider.username'); $d = $this->get('event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE); $e = $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE); $f = $this->get('http_kernel'); $g = $this->get('security.authentication.manager'); $h = new \Symfony\Component\HttpFoundation\RequestMatcher('^/admin'); $i = new \Symfony\Component\Security\Http\AccessMap(); $i->add($h, array(0 => 'ROLE_ADMIN'), NULL); $j = new \Symfony\Component\Security\Core\User\InMemoryUserProvider(); $j->createUser(new \Symfony\Component\Security\Core\User\User('user', 'userpass', array(0 => 'ROLE_USER'))); $j->createUser(new \Symfony\Component\Security\Core\User\User('admin', 'adminpass', array(0 => 'ROLE_ADMIN'))); $k = new \Symfony\Component\Security\Http\HttpUtils($e, $e); $l = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $c), 'chouchou', 'main', array('name' => 'REMEMBERME', 'lifetime' => 31536000, 'path' => '/', 'domain' => NULL, 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $a); $m = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $k, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($k, '/accueil'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => 'fos_user_security_logout')); $m->addHandler($l); $n = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($k, array()); $n->setOptions(array('login_path' => 'fos_user_security_login', 'always_use_default_target_path' => true, 'default_target_path' => '/admin', 'target_path_parameter' => '_target_path', 'use_referer' => false)); $n->setProviderKey('main'); $o = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $k, array(), $a); $o->setOptions(array('login_path' => 'fos_user_security_login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path')); $p = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $g, $this->get('security.authentication.session_strategy'), $k, 'main', $n, $o, array('check_path' => 'fos_user_security_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $a, $d, NULL); $p->setRememberMeServices($l); return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($i, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $j, 1 => $c), 'main', $a, $d), 2 => $m, 3 => $p, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($b, $l, $g, $a, $d, true), 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '5638b663aa0283.33037473', $a, $g), 6 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $this->get('security.access.decision_manager'), $i, $g)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $k, 'main', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($f, $k, 'fos_user_security_login', false), NULL, NULL, $a)); }
/** * Gets the 'security.firewall.map.context.secured_area' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Bundle\SecurityBundle\Security\FirewallContext A Symfony\Bundle\SecurityBundle\Security\FirewallContext instance. */ protected function getSecurity_Firewall_Map_Context_SecuredAreaService() { $a = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE); $b = $this->get('security.token_storage'); $c = $this->get('security.user.provider.concrete.database'); $d = $this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE); $e = $this->get('router'); $f = $this->get('session'); $g = $this->get('security.authentication.manager'); $h = $this->get('http_kernel'); $i = new \Symfony\Component\Security\Http\AccessMap(); $j = new \Symfony\Component\Security\Http\HttpUtils($e, $e); $k = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $c), 'ThisTokenIsNotSoSecretChangeIt', 'secured_area', array('lifetime' => 604800, 'path' => '/', 'name' => 'REMEMBERME', 'domain' => NULL, 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $a); $l = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $j, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($j, '/'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => '/logout')); $l->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler()); $l->addHandler($k); $m = new \Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy('migrate'); $n = new \AppBundle\Handler\AuthenticationHandler($e, $f); $n->setContainer($this); $o = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $g, $m, $j, 'secured_area', new \Symfony\Component\Security\Http\Authentication\CustomAuthenticationSuccessHandler($n, array('login_path' => '/login', 'default_target_path' => '/players', 'always_use_default_target_path' => false, 'target_path_parameter' => '_target_path', 'use_referer' => false), 'secured_area'), new \Symfony\Component\Security\Http\Authentication\CustomAuthenticationFailureHandler($n, array('login_path' => '/login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path')), array('check_path' => '/login_check', 'require_previous_session' => false, 'use_forward' => false, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $a, $d, $this->get('security.csrf.token_manager')); $o->setRememberMeServices($k); $p = new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($h, $j, '/login', false); return $this->services['security.firewall.map.context.secured_area'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($i, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $c), 'secured_area', $a, $d), 2 => $l, 3 => $o, 4 => new \Symfony\Component\Security\Http\Firewall\BasicAuthenticationListener($b, $g, 'secured_area', $p, $a), 5 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($b, $k, $g, $a, $d, true, $m), 6 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '568d621059dc08.25953213', $a, $g), 7 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $this->get('security.access.decision_manager'), $i, $g)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $j, 'secured_area', $p, NULL, NULL, $a, false)); }
/** * Gets the 'security.firewall.map.context.main' service. * * This service is shared. * This method always returns the same instance of the service. * * @return Symfony\Bundle\SecurityBundle\Security\FirewallContext A Symfony\Bundle\SecurityBundle\Security\FirewallContext instance. */ protected function getSecurity_Firewall_Map_Context_MainService() { $a = $this->get('security.context'); $b = $this->get('fos_user.user_provider.username'); $c = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE); $d = $this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE); $e = $this->get('security.http_utils'); $f = $this->get('http_kernel'); $g = $this->get('security.authentication.manager'); $h = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $b), 'ThisTokenIsNotSoSecretChangeIt', 'main', array('name' => 'REMEMBERME', 'lifetime' => 31536000, 'path' => '/', 'domain' => NULL, 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $c); $i = new \Symfony\Component\Security\Http\Firewall\LogoutListener($a, $e, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($e, '/login'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => 'fos_user_security_logout')); $i->addHandler($this->get('security.logout.handler.session')); $i->addHandler($h); $j = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($a, $g, $this->get('security.authentication.session_strategy'), $e, 'main', $this->get('ccdn_user_security.component.authentication.handler.login_success_handler'), new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $e, array('login_path' => 'fos_user_security_login', 'failure_path' => '/login', 'failure_forward' => false, 'failure_path_parameter' => '_failure_path'), $c), array('check_path' => 'fos_user_security_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $c, $d, NULL); $j->setRememberMeServices($h); return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => $this->get('security.channel_listener'), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($a, array(0 => $b), 'main', $c, $d), 2 => $i, 3 => $j, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($a, $h, $g, $c, $d), 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($a, '537a22dccd898', $c), 6 => $this->get('security.access_listener')), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($a, $this->get('security.authentication.trust_resolver'), $e, 'main', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($f, $e, 'fos_user_security_login', false), NULL, NULL, $c)); }
protected function getSecurity_Firewall_Map_Context_MainService() { $a = $this->get('monolog.logger.security'); $b = $this->get('security.context'); $c = $this->get('fos_user.user_manager'); $d = $this->get('event_dispatcher'); $e = $this->get('router'); $f = $this->get('security.authentication.manager'); $g = new \Symfony\Component\Security\Http\AccessMap(); $h = new \Symfony\Component\Security\Http\HttpUtils($e); $i = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $c), 'ThisTokenIsNotSoSecretChangeIt', 'main', array('name' => 'REMEMBERME', 'lifetime' => 31536000, 'path' => '/', 'domain' => NULL, 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $a); $j = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $h, '/logout', '/', NULL); $j->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler()); $j->addHandler($i); $k = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $f, new \Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy('migrate'), $h, 'main', array('check_path' => '/login_check', 'use_forward' => false, 'always_use_default_target_path' => false, 'default_target_path' => '/', 'login_path' => '/login', 'target_path_parameter' => '_target_path', 'use_referer' => false, 'failure_path' => NULL, 'failure_forward' => false, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), NULL, NULL, $a, $d); $k->setRememberMeServices($i); return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($g, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $c), 'main', $a, $d), 2 => $j, 3 => $k, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($b, $i, $f, $a, $d), 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '5664d4f731586', $a), 6 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $this->get('security.access.decision_manager'), $g, $f, $a)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $h, new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($this->get('http_kernel'), $h, '/login', false), NULL, NULL, $a)); }
protected function getSecurity_Firewall_Map_Context_MainService() { $a = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE); $b = $this->get('security.token_storage'); $c = $this->get('fos_user.user_provider.username_email'); $d = $this->get('event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE); $e = $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE); $f = $this->get('http_kernel'); $g = $this->get('security.authentication.manager'); $h = $this->get('security.authentication.session_strategy'); $i = new \Symfony\Component\HttpFoundation\RequestMatcher('^/profil'); $j = new \Symfony\Component\HttpFoundation\RequestMatcher('^/creationStage'); $k = new \Symfony\Component\HttpFoundation\RequestMatcher('^/creationEtudiant'); $l = new \Symfony\Component\Security\Http\AccessMap(); $l->add($i, array(0 => 'IS_AUTHENTICATED_FULLY'), NULL); $l->add($j, array(0 => 'ROLE_ETUDIANT'), NULL); $l->add($k, array(0 => 'ROLE_ENSEIGNANT'), NULL); $m = new \Symfony\Component\Security\Http\HttpUtils($e, $e); $n = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $c), 'fdee32dc903968bb56803f6ae60f8f122525b301', 'main', array('lifetime' => 604800, 'path' => '/', 'name' => 'REMEMBERME', 'domain' => NULL, 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $a); $o = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $m, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($m, '/'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => 'fos_user_security_logout')); $o->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler()); $o->addHandler($n); $p = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($m, array()); $p->setOptions(array('login_path' => 'fos_user_security_login', 'default_target_path' => '/accueil', 'always_use_default_target_path' => false, 'target_path_parameter' => '_target_path', 'use_referer' => false)); $p->setProviderKey('main'); $q = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $m, array(), $a); $q->setOptions(array('login_path' => 'fos_user_security_login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path')); $r = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $g, $h, $m, 'main', $p, $q, array('check_path' => 'fos_user_security_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $a, $d, NULL); $r->setRememberMeServices($n); return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($l, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $c), 'main', $a, $d), 2 => $o, 3 => $r, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($b, $n, $g, $a, $d, true, $h), 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '56a53df458b248.53999727', $a, $g), 6 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $this->get('security.access.decision_manager'), $l, $g)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $m, 'main', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($f, $m, 'fos_user_security_login', false), '/accueil', NULL, $a, false)); }
protected function getSecurity_Firewall_Map_Context_ShareService() { $a = $this->get('security.context'); $b = $this->get('we_user_provider'); $c = $this->get('monolog.logger.security'); $d = $this->get('event_dispatcher'); $e = $this->get('security.authentication.manager'); $f = $this->get('security.http_utils'); $g = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $b), '335a052790228abbc6ea61b49ie9280adfaow808', 'share', array('lifetime' => 604800, 'path' => '/', 'domain' => NULL, 'name' => 'REMEMBERME', 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $c); $h = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($a, $e, $this->get('security.authentication.session_strategy'), $f, 'share', array('check_path' => '/share/sharelogin_check', 'login_path' => '/share/sharelogin', 'use_forward' => true, 'always_use_default_target_path' => false, 'default_target_path' => '/', 'target_path_parameter' => '_target_path', 'use_referer' => false, 'failure_path' => NULL, 'failure_forward' => false, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), NULL, NULL, $c, $d); $h->setRememberMeServices($g); return $this->services['security.firewall.map.context.share'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => $this->get('security.channel_listener'), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($a, array(0 => $b), 'share', $c, $d), 2 => $h, 3 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($a, $g, $e, $c, $d), 4 => $this->get('security.access_listener')), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($a, $this->get('security.authentication.trust_resolver'), $f, new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($this->get('http_kernel'), $f, '/share/sharelogin', true), NULL, NULL, $c)); }