Spaces:
No application file
No application file
File size: 1,108 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
<?php
namespace Mautic\CoreBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
class MauticCoreExtension extends Extension
{
public const DEFAULT_EXCLUDES = [
'Config',
'Crate',
'DataObject',
'DependencyInjection',
'DTO',
'Entity',
'Event',
'Exception',
'Migration',
'Migrations',
'Security',
'Test',
'Tests',
'Views',
];
/**
* @param mixed[] $configs
*/
public function load(array $configs, ContainerBuilder $container): void
{
// For the project:
$loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../../../config'));
$loader->load('services.php');
// For the CoreBundle
$loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../Config'));
$loader->load('services.php');
}
}
|