Skip to content

[FrameworkBundle] Reboot kernel on warmup is needed for ConfigBuilderGenerator #41011

@a-menshchikov

Description

@a-menshchikov

When I run cache:warmup command with existing cache, \Symfony\Component\Config\Builder\ConfigBuilderGenerator build SecurityConfig without any listeners configs (e.g. \Symfony\Config\Security\FirewallConfig\FormLoginConfig). This is because ConfigBuilderGenerator call SecurityExtension::getConfiguration without first execute SecurityExtension::addSecurityListenerFactory (that only executed in Bundle::build).

It seems like a bug and CacheWarmupCommand should call kernel reboot method before calling CacheWarmerAggregate::warmUp. The same thing actual for CacheClearCommand and case when cache is fresh.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions