public function load(array $configs, ContainerBuilder $container) { $xmlLoader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); $xmlLoader->load('payment.xml'); $configuration = new Configuration(); $processor = new Processor(); $config = $processor->process($configuration->getConfigTree(), $configs); if (isset($config['secret'])) { $container->setParameter('payment.encryption_service.secret', $config['secret']); } }
public function load(array $configs, ContainerBuilder $container) { $xmlLoader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); $xmlLoader->load('payment.xml'); $configuration = new Configuration(); $processor = new Processor(); $config = $processor->process($configuration->getConfigTree(), $configs); if (isset($config['secret'])) { $container->setParameter('payment.encryption_service.secret', $config['secret']); } if (version_compare(Kernel::VERSION, '2.1.0-DEV', '<')) { $container->removeDefinition('payment.form.choose_payment_method_type'); } }