/** * {@inheritDoc} * * @param array $configs configs to load * @param ContainerBuilder $container builder used to load * * @return void */ public function load(array $configs, ContainerBuilder $container) { parent::load($configs, $container); // define alias for the strategy to extract the authentication key from the Airlock request. $container->setAlias('graviton.security.authentication.strategy', $container->getParameter('graviton.security.authentication.strategy')); $container->setAlias('graviton.security.authentication.dynamic.model', $container->getParameter('graviton.security.authentication.provider.model')); }
/** * @param array $configs parameters configuration * @param ContainerBuilder $container Symfony container * @return void */ public function load(array $configs, ContainerBuilder $container) { parent::load($configs, $container); $configuration = new Configuration(); $this->processConfiguration($configuration, $configs); $container->setParameter('graviton.core.links', $configs[0]['service_name']); $container->setParameter('graviton.core.main.path.whitelist', $configs[0]['uri_whitelist']); }
/** * Loads current configuration. * * @param array $configs Set of configuration options * @param ContainerBuilder $container Instance of the SF2 container * * @return void */ public function load(array $configs, ContainerBuilder $container) { parent::load($configs, $container); $configs = $this->processConfiguration(new Configuration(), $configs); $container->setParameter('graviton.proxy.sources', $configs['sources']); }