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.
45 lines
1.0 KiB
45 lines
1.0 KiB
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\CourseBundle;
|
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Chamilo\CourseBundle\DependencyInjection\Compiler\ToolCompilerClass;
|
|
use Chamilo\CourseBundle\DependencyInjection\Compiler\RegisterSchemasPass;
|
|
|
|
/**
|
|
* Class ChamiloCourseBundle
|
|
* @package Chamilo\CourseBundle
|
|
*/
|
|
class ChamiloCourseBundle extends Bundle
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function getSupportedDrivers()
|
|
{
|
|
return array(
|
|
SyliusResourceBundle::DRIVER_DOCTRINE_ORM
|
|
);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function getBundlePrefix()
|
|
{
|
|
return 'chamilo_course';
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
public function build(ContainerBuilder $container)
|
|
{
|
|
parent::build($container);
|
|
|
|
$container->addCompilerPass(new ToolCompilerClass());
|
|
$container->addCompilerPass(new RegisterSchemasPass());
|
|
}
|
|
}
|
|
|