vendor/thecadien/sulu-news-bundle/NewsBundle.php line 21

  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of TheCadien/SuluNewsBundle.
  5.  *
  6.  * (c) Oliver Kossin
  7.  *
  8.  * This source file is subject to the MIT license that is bundled
  9.  * with this source code in the file LICENSE.
  10.  */
  11. namespace TheCadien\Bundle\SuluNewsBundle;
  12. use Sulu\Bundle\PersistenceBundle\PersistenceBundleTrait;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. use TheCadien\Bundle\SuluNewsBundle\Entity\NewsInterface;
  16. class NewsBundle extends Bundle
  17. {
  18.     use PersistenceBundleTrait;
  19.     public function build(ContainerBuilder $container): void
  20.     {
  21.         $this->buildPersistence(
  22.             [
  23.                 NewsInterface::class => 'sulu.model.news.class',
  24.             ],
  25.             $container
  26.         );
  27.     }
  28. }