コード例 #1
0
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $authService = $serviceLocator->get('zfcuser_auth_service');
     $bjyConfig = $serviceLocator->get('BjyAuthorize\\Config');
     $config = $serviceLocator->get('ZfcUserLdap\\Config');
     $provider = new LdapIdentityProvider($authService, $config, $bjyConfig);
     $provider->setDefaultRole($config['default_role']);
     return $provider;
 }
コード例 #2
0
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     /* @var $userService \ZfcUser\Service\User */
     $userService = $serviceLocator->get('zfcuser_user_service');
     //$serviceLocator->get('zfcuser_auth_service');
     $config = $serviceLocator->get('BjyAuthorize\\Config');
     $provider = new LdapIdentityProvider($userService, $config);
     $provider->setDefaultRole($config['default_role']);
     return $provider;
 }