Skip to content

[DX] Add ability to disable AddClassesToCachePass compiler pass #17439

Closed
@Strate

Description

@Strate

There is no way to disable AddClassesToCachePass compiler pass.
It generates classes.map file, and then ClassCacheCacheWarmer always generated classes.php file.
So, if I do app/console cache:warmup for my dev environment I got a classes.php file always, wihtout exceptions. But I want to disable that, as it described in http://symfony.com/doc/current/cookbook/debugging.html (my IDE is not very happy with classes.php file)

The only one way to do that is to override buildContainer method in AppKernel.php file and remove line

$container->addCompilerPass(new AddClassesToCachePass($this));

There should be more convient way to do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)HttpKernel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions