Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Flex] Cache does not rebuild on new YAML file #25904

Copy link
Copy link
Closed
@weaverryan

Description

@weaverryan
Issue body actions
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.4 (really, it's a Flex thing)

To reproduce:

  1. Install a bundle that does NOT create a config file for you (which is totally fine if you bundle doesn't normally need configuration). For example: composer require knplabs/knp-markdown-bundle

  2. Create a config file - e.g. config/packages/knp_markdown.yaml.

The container will not rebuild automatically. In Kernel.php, we're loading some glob via the GlobResource, but it doesn't appear that those GlobResource are actually set into the container and thus considered on refresh. On container build, I see about 12 GlobResource being created. But on refresh, I only see isFresh() being called on 2 of them (both looking in src/ or /src/Controller for changes) - I also only see those 2 in the .meta file.

It appears like we're creating GlobResource in FileLoader, using them to find files, but never adding them to the container as resources. Or am I mistaken?

Thanks!

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.