*/ class RoleCollectorServiceFactory implements FactoryInterface { /** * {@inheritDoc} * * @return \BjyAuthorize\Collector\RoleCollector */ public function createService(ServiceLocatorInterface $serviceLocator) { /* @var $identityProvider \BjyAuthorize\Provider\Identity\ProviderInterface */ $identityProvider = $serviceLocator->get('BjyAuthorize\Provider\Identity\ProviderInterface'); return new RoleCollector($identityProvider); } }