vendor/netgen/information-collection-bundle/bundle/NetgenInformationCollectionBundle.php line 10

Open in your IDE?
  1. <?php
  2. namespace Netgen\Bundle\InformationCollectionBundle;
  3. use Ibexa\Bundle\Core\DependencyInjection\IbexaCoreExtension;
  4. use Netgen\Bundle\InformationCollectionBundle\Ibexa\PolicyProvider\InformationCollectionPolicyProvider;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\HttpKernel\Bundle\Bundle;
  7. class NetgenInformationCollectionBundle extends Bundle
  8. {
  9. public function build(ContainerBuilder $container): void
  10. {
  11. parent::build($container);
  12. $ibexaExtension = $container->getExtension('ibexa');
  13. if ($ibexaExtension instanceof IbexaCoreExtension) {
  14. $ibexaExtension->addPolicyProvider(new InformationCollectionPolicyProvider());
  15. }
  16. }
  17. }