You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
990 B
39 lines
990 B
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\CoreBundle\DependencyInjection;
|
|
|
|
use Symfony\Component\Config\FileLocator;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\DependencyInjection\Loader;
|
|
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
|
|
|
/**
|
|
* Class ChamiloCoreExtension.
|
|
*/
|
|
class ChamiloCoreExtension extends Extension
|
|
{
|
|
/**
|
|
* @param array $configs
|
|
* @param ContainerBuilder $container
|
|
*/
|
|
public function load(array $configs, ContainerBuilder $container)
|
|
{
|
|
$loader = new Loader\YamlFileLoader(
|
|
$container,
|
|
new FileLocator(__DIR__.'/../Resources/config')
|
|
);
|
|
$loader->load('services.yml');
|
|
$loader->load('admin.yml');
|
|
$loader->load('tools.yml');
|
|
$loader->load('settings.yml');
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getAlias()
|
|
{
|
|
return 'chamilo_core';
|
|
}
|
|
}
|
|
|