|
|
|
@ -1,4 +1,5 @@ |
|
|
|
|
<?php |
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
|
|
|
|
|
namespace Chamilo\CoreBundle\DependencyInjection; |
|
|
|
|
|
|
|
|
@ -7,17 +8,32 @@ use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
|
|
|
|
use Symfony\Component\Config\FileLocator; |
|
|
|
|
use Symfony\Component\DependencyInjection\Loader; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Class ChamiloCoreExtension |
|
|
|
|
* @package Chamilo\CoreBundle\DependencyInjection |
|
|
|
|
*/ |
|
|
|
|
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 = new Loader\YamlFileLoader( |
|
|
|
|
$container, |
|
|
|
|
new FileLocator(__DIR__ . '/../Resources/config') |
|
|
|
|
); |
|
|
|
|
$loader->load('services.yml'); |
|
|
|
|
$loader->load('admin.yml'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getAlias() |
|
|
|
|
{ |
|
|
|
|
return 'chamilo_core'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|