Skip to content

[HttpKernel] Missing documentation about HttpKernel Extension #4492

Closed
@linaori

Description

@linaori

Recently I've made a PR for the SecurityComponent to remove the SecurityContext in 3.0. I found something in the SecurityExtension that caught my eye:

$this->addClassesToCompile([
    // list of class names
]);

I've never seen this method before so I went on searching for it. It seems like the HttpKernel component has a custom Extension that adds this method and the SecurityExtension extends this. It seems like this makes it possible to add the contents of the classes to classes.php in your cache directory.

When I was looking for documentation, I couldn't find any. I was expecting it to be on at least one of the following pages:

Should this be a feature that's documented? If that's the case, I can take a look at how it exactly works, implement it and write down when you should or should not add classes to this list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableClear and specific issues ready for anyone to take them.hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions