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