Closed
Description
Symfony version(s) affected: ^4.1
Description
SecurityBundle configuration seems to be mandatory as of Symfony 4.1.
Previously, in 4.0, leaving the bundle unconfigured in some environments caused no issues.
How to reproduce
$ composer create-project symfony/website-skeleton sf-bug -q
$ cd sf-bug/
$ rm config/packages/security.yaml
$ bin/console c:c
In ArrayNode.php line 230:
The child node "firewalls" at path "security" must be configured.
Additional context
$ bin/console c:c -vvv
// Clearing the cache for the dev environment with debug false
// Warming up cache...
In ArrayNode.php line 230:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
The child node "firewalls" at path "security" must be configured.
Exception trace:
Symfony\Component\Config\Definition\ArrayNode->finalizeValue() at vendor/symfony/config/Definition/BaseNode.php:413
Symfony\Component\Config\Definition\BaseNode->finalize() at vendor/symfony/config/Definition/Processor.php:39
Symfony\Component\Config\Definition\Processor->process() at vendor/symfony/config/Definition/Processor.php:52
Symfony\Component\Config\Definition\Processor->processConfiguration() at vendor/symfony/dependency-injection/Compiler/ValidateEnvPlaceholdersPass.php:80
Symfony\Component\DependencyInjection\Compiler\ValidateEnvPlaceholdersPass->process() at vendor/symfony/dependency-injection/Compiler/Compiler.php:95
Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at vendor/symfony/dependency-injection/ContainerBuilder.php:736
Symfony\Component\DependencyInjection\ContainerBuilder->compile() at vendor/symfony/http-kernel/Kernel.php:519
Symfony\Component\HttpKernel\Kernel->initializeContainer() at vendor/symfony/http-kernel/Kernel.php:123
Symfony\Component\HttpKernel\Kernel->boot() at vendor/symfony/http-kernel/Kernel.php:140
Symfony\Component\HttpKernel\Kernel->reboot() at vendor/symfony/framework-bundle/Command/CacheClearCommand.php:187
Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() at vendor/symfony/framework-bundle/Command/CacheClearCommand.php:129
Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() at vendor/symfony/console/Command/Command.php:251
Symfony\Component\Console\Command\Command->run() at vendor/symfony/console/Application.php:904
Symfony\Component\Console\Application->doRunCommand() at vendor/symfony/framework-bundle/Console/Application.php:89
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at vendor/symfony/console/Application.php:262
Symfony\Component\Console\Application->doRun() at vendor/symfony/framework-bundle/Console/Application.php:75
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at vendor/symfony/console/Application.php:145
Symfony\Component\Console\Application->run() at bin/console:37