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