26 lines
715 B
PHP
26 lines
715 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace MauticPlugin\PlanBundle\DependencyInjection;
|
|
|
|
use Symfony\Component\Config\FileLocator;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\DependencyInjection\Extension\Extension;
|
|
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
|
|
|
|
/**
|
|
* Loads Config/services.php (Symfony finds this class by naming convention).
|
|
*/
|
|
final class PlanExtension extends Extension
|
|
{
|
|
/**
|
|
* @param mixed[] $configs
|
|
*/
|
|
public function load(array $configs, ContainerBuilder $container): void
|
|
{
|
|
$loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../Config'));
|
|
$loader->load('services.php');
|
|
}
|
|
}
|