vendor/sulu/sulu/src/Sulu/Bundle/ActivityBundle/SuluActivityBundle.php line 21

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\ActivityBundle;
  11. use Sulu\Bundle\ActivityBundle\Domain\Model\ActivityInterface;
  12. use Sulu\Bundle\ActivityBundle\Infrastructure\Symfony\DependencyInjection\SuluActivityExtension;
  13. use Sulu\Bundle\PersistenceBundle\PersistenceBundleTrait;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  16. use Symfony\Component\HttpKernel\Bundle\Bundle;
  17. class SuluActivityBundle extends Bundle
  18. {
  19. use PersistenceBundleTrait;
  20. public function build(ContainerBuilder $container): void
  21. {
  22. $this->buildPersistence(
  23. [
  24. ActivityInterface::class => 'sulu.model.activity.class',
  25. ],
  26. $container
  27. );
  28. }
  29. public function getContainerExtension(): ExtensionInterface
  30. {
  31. return new SuluActivityExtension();
  32. }
  33. }