*/ class ConfigRoleProviderServiceFactory implements FactoryInterface { /** * {@inheritDoc} * * @return \BjyAuthorize\Provider\Role\Config */ public function createService(ServiceLocatorInterface $serviceLocator) { $config = $serviceLocator->get('BjyAuthorize\Config'); return new Config($config['role_providers']['BjyAuthorize\Provider\Role\Config']); } }