vendor/friendsofsymfony/ckeditor-bundle/src/FOSCKEditorBundle.php line 33

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the FOSCKEditor Bundle.
  4.  *
  5.  * (c) 2018 - present  Friends of Symfony
  6.  * (c) 2009 - 2017     Eric GELOEN <geloen.eric@gmail.com>
  7.  *
  8.  * For the full copyright and license information, please read the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace FOS\CKEditorBundle;
  12. use FOS\CKEditorBundle\DependencyInjection\Compiler\ResourceCompilerPass;
  13. use FOS\CKEditorBundle\DependencyInjection\Compiler\TemplatingCompilerPass;
  14. use FOS\CKEditorBundle\DependencyInjection\FOSCKEditorExtension;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. use Symfony\Component\HttpKernel\Bundle\Bundle;
  17. /**
  18.  * @author GeLo <geloen.eric@gmail.com>
  19.  */
  20. class FOSCKEditorBundle extends Bundle
  21. {
  22.     /**
  23.      * {@inheritdoc}
  24.      */
  25.     public function build(ContainerBuilder $container)
  26.     {
  27.         $container
  28.             ->addCompilerPass(new ResourceCompilerPass())
  29.             ->addCompilerPass(new TemplatingCompilerPass());
  30.     }
  31.     public function getContainerExtension()
  32.     {
  33.         return new FOSCKEditorExtension();
  34.     }
  35. }