diff --git a/src/DependencyInjection/DdrBridgeExtension.php b/src/DependencyInjection/DdrBridgeExtension.php index 2ca00c8..667684a 100644 --- a/src/DependencyInjection/DdrBridgeExtension.php +++ b/src/DependencyInjection/DdrBridgeExtension.php @@ -63,6 +63,7 @@ public function load(array $configs, ContainerBuilder $container): void $userConfig = $config['user'] ?? null; $userEnabled = null !== $userConfig && true === $userConfig['enabled']; $container->setParameter(ParamName::USER_ENABLED, $userEnabled); + $container->setParameter(ParamName::USER_LOGIN_LINK_ENABLED, false); if ($userEnabled) { $this->configureUser($userConfig, $container, $loader); } diff --git a/src/Routing/DdrBridgeLoader.php b/src/Routing/DdrBridgeLoader.php index 49e8ad9..3bf54ac 100644 --- a/src/Routing/DdrBridgeLoader.php +++ b/src/Routing/DdrBridgeLoader.php @@ -3,8 +3,8 @@ namespace Dontdrinkandroot\BridgeBundle\Routing; use Dontdrinkandroot\BridgeBundle\Controller\HealthAction; -use Dontdrinkandroot\BridgeBundle\Controller\Security\LoginLink\CheckAction; use Dontdrinkandroot\BridgeBundle\Controller\Security\LoginAction; +use Dontdrinkandroot\BridgeBundle\Controller\Security\LoginLink\CheckAction; use Dontdrinkandroot\BridgeBundle\Controller\Security\LoginLink\RequestAction; use Dontdrinkandroot\BridgeBundle\Model\Container\RouteName; use Dontdrinkandroot\BridgeBundle\Model\Container\RoutePath; @@ -24,6 +24,7 @@ public function __construct( private readonly bool $userEnabled, private readonly bool $loginLinkEnabled ) { + parent::__construct(); } #[Override] diff --git a/tests/Acceptance/BaseTemplateTest.php b/tests/Acceptance/BaseTemplateTest.php index b969b4b..ded5472 100644 --- a/tests/Acceptance/BaseTemplateTest.php +++ b/tests/Acceptance/BaseTemplateTest.php @@ -1,6 +1,6 @@ import('@DdrBridgeBundle/config/routes/health.php'); $routes->import('.', 'ddr_crud'); + $routes->import('.', 'ddr_bridge'); $routes->import('.', 'api_platform')->prefix('/api'); $routes ->add('ddr_bridge.test.base_template', '/base_template')