No Description
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.

LogiproSCORMExtension.php 781B

12345678910111213141516171819202122
  1. <?php
  2. namespace Logipro\Bundle\SCORMBundle\DependencyInjection;
  3. use Symfony\Component\Config\FileLocator;
  4. use Symfony\Component\DependencyInjection\ContainerBuilder;
  5. use Symfony\Component\DependencyInjection\Extension\Extension;
  6. use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
  7. class LogiproSCORMExtension extends Extension
  8. {
  9. public function load(array $configs, ContainerBuilder $container)
  10. {
  11. $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
  12. $loader->load('services.xml');
  13. $configuration = new Configuration();
  14. $config = $this->processConfiguration($configuration, $configs);
  15. $container->setParameter('logipro_scorm.package_folder', $config['package_folder']);
  16. }
  17. }