*/ class IdentityProviderServiceFactory implements FactoryInterface { /** * {@inheritDoc} * * @return \BjyAuthorize\Provider\Identity\ProviderInterface */ public function createService(ServiceLocatorInterface $serviceLocator) { $config = $serviceLocator->get('BjyAuthorize\Config'); return $serviceLocator->get($config['identity_provider']); } }