vendor/sulu/sulu/src/Sulu/Bundle/CategoryBundle/SuluCategoryBundle.php line 22

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of Sulu.
  4.  *
  5.  * (c) Sulu GmbH
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Sulu\Bundle\CategoryBundle;
  11. use Sulu\Bundle\CategoryBundle\DependencyInjection\DeprecationCompilerPass;
  12. use Sulu\Bundle\PersistenceBundle\PersistenceBundleTrait;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16.  * Entry point for the SuluCategoryBundle.
  17.  */
  18. class SuluCategoryBundle extends Bundle
  19. {
  20.     use PersistenceBundleTrait;
  21.     public function build(ContainerBuilder $container)
  22.     {
  23.         $this->buildPersistence(
  24.             [
  25.                 'Sulu\Bundle\CategoryBundle\Entity\CategoryInterface' => 'sulu.model.category.class',
  26.                 'Sulu\Bundle\CategoryBundle\Entity\CategoryMetaInterface' => 'sulu.model.category_meta.class',
  27.                 'Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface' => 'sulu.model.category_translation.class',
  28.                 'Sulu\Bundle\CategoryBundle\Entity\KeywordInterface' => 'sulu.model.keyword.class',
  29.             ],
  30.             $container
  31.         );
  32.         $container->addCompilerPass(new DeprecationCompilerPass());
  33.     }
  34. }