vendor/sulu/sulu/src/Sulu/Bundle/TrashBundle/SuluTrashBundle.php line 23

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of Sulu.
  5. *
  6. * (c) Sulu GmbH
  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 Sulu\Bundle\TrashBundle;
  12. use Sulu\Bundle\PersistenceBundle\PersistenceBundleTrait;
  13. use Sulu\Bundle\TrashBundle\Domain\Model\TrashItemInterface;
  14. use Sulu\Bundle\TrashBundle\Infrastructure\Symfony\DependencyInjection\SuluTrashExtension;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  17. use Symfony\Component\HttpKernel\Bundle\Bundle;
  18. class SuluTrashBundle extends Bundle
  19. {
  20. use PersistenceBundleTrait;
  21. public function build(ContainerBuilder $container): void
  22. {
  23. $this->buildPersistence(
  24. [
  25. TrashItemInterface::class => 'sulu.model.trash_item.class',
  26. ],
  27. $container
  28. );
  29. }
  30. public function getContainerExtension(): ExtensionInterface
  31. {
  32. return new SuluTrashExtension();
  33. }
  34. }