Пример #1
0
 protected function getSecurity_Authentication_ManagerService()
 {
     $a = $this->get('mautic.user.provider');
     $b = $this->get('security.encoder_factory');
     $c = new \Symfony\Component\Security\Core\User\UserChecker();
     $d = new \Mautic\ApiBundle\Security\OAuth1\Authentication\Provider\OAuthProvider($a, $this->get('bazinga.oauth.server_service'), '');
     $d->setFactory($this->get('mautic.factory'));
     $this->services['security.authentication.manager'] = $instance = new \Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager(array(0 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('567aa2dbd72de8.36627330'), 1 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('567aa2dbd72de8.36627330'), 2 => new \Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider($a, $c, 'oauth2_area', $b, true), 3 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('567aa2dbd72de8.36627330'), 4 => new \Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider($a, $c, 'oauth1_area', $b, true), 5 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('567aa2dbd72de8.36627330'), 6 => new \FOS\OAuthServerBundle\Security\Authentication\Provider\OAuthProvider($a, $this->get('fos_oauth_server.server'), $c), 7 => $d, 8 => new \Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider($a, $c, 'main', $b, true), 9 => new \Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider($c, 'ab90c625f80f8126309fec4fae1da7fff78001dd', 'main'), 10 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('567aa2dbd72de8.36627330')), true);
     $instance->setEventDispatcher($this->get('event_dispatcher'));
     return $instance;
 }
 protected function getSecurity_Authentication_ManagerService()
 {
     $a = $this->get('mautic.user.provider');
     $b = $this->get('security.encoder_factory');
     $c = new \Symfony\Component\Security\Core\User\UserChecker();
     $d = new \Mautic\ApiBundle\Security\OAuth1\Authentication\Provider\OAuthProvider($a, $this->get('bazinga.oauth.server_service'), '');
     $d->setFactory($this->get('mautic.factory'));
     $this->services['security.authentication.manager'] = $instance = new \Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager(array(0 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('56b3a0589b1fc5.38428594'), 1 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('56b3a0589b1fc5.38428594'), 2 => new \Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider($a, $c, 'oauth2_area', $b, true), 3 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('56b3a0589b1fc5.38428594'), 4 => new \Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider($a, $c, 'oauth1_area', $b, true), 5 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('56b3a0589b1fc5.38428594'), 6 => new \FOS\OAuthServerBundle\Security\Authentication\Provider\OAuthProvider($a, $this->get('fos_oauth_server.server'), $c), 7 => $d, 8 => new \Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider($a, $c, 'main', $b, true), 9 => new \Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider($c, 'e906b3d03b1f23d736f4792b214e9a67d812b24d', 'main'), 10 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('56b3a0589b1fc5.38428594')), true);
     $instance->setEventDispatcher($this->get('event_dispatcher'));
     return $instance;
 }