vendor/ibexa/dashboard/src/bundle/IbexaDashboardBundle.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * @copyright Copyright (C) Ibexa AS. All rights reserved.
  4.  * @license For full copyright and license information view LICENSE file distributed with this source code.
  5.  */
  6. declare(strict_types=1);
  7. namespace Ibexa\Bundle\Dashboard;
  8. use Ibexa\Bundle\Dashboard\DependencyInjection\Parser\Dashboard;
  9. use Ibexa\Dashboard\Security\DashboardPolicyProvider;
  10. use Symfony\Component\DependencyInjection\ContainerBuilder;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. final class IbexaDashboardBundle extends Bundle
  13. {
  14.     public function build(ContainerBuilder $container): void
  15.     {
  16.         /** @var \Ibexa\Bundle\Core\DependencyInjection\IbexaCoreExtension $coreExtension */
  17.         $coreExtension $container->getExtension('ibexa');
  18.         $coreExtension->addConfigParser(new Dashboard());
  19.         $coreExtension->addDefaultSettings(__DIR__ '/Resources/config', ['default_settings.yaml']);
  20.         $coreExtension->addPolicyProvider(new DashboardPolicyProvider());
  21.     }
  22. }