for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Beelab\PaypalBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
class BeelabPaypalExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container): void
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
// TODO remove "service_class", as it's deprecated
$container->setParameter('beelab_paypal.service_class', $config['service_class']);
unset($config['service_class']);
$container->setParameter('beelab_paypal.config', $config);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');
}