| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function load(array $configs, ContainerBuilder $container) |
||
| 23 | { |
||
| 24 | $configuration = new Configuration(); |
||
| 25 | $config = $this->processConfiguration($configuration, $configs); |
||
| 26 | |||
| 27 | $this->registerResources('ph', $config['driver'], [], $container); |
||
| 28 | |||
| 29 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 30 | $loader->load('services.yml'); |
||
| 31 | $loader->load('actions.yml'); |
||
| 32 | $loader->load('forms.yml'); |
||
| 33 | $loader->load('extensions.yml'); |
||
| 34 | |||
| 35 | $container->setParameter('ph.payum.redirect.thank_you_url', $config['thank_you_url']); |
||
| 36 | $container->setParameter('ph.payum.redirect.cancel_url', $config['cancel_url']); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |