Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Config] fix import from config file using type: glob #36041

Merged
merged 1 commit into from Mar 13, 2020

Conversation

Tobion
Copy link
Member

@Tobion Tobion commented Mar 12, 2020

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

If you try to import configs with glob using

imports:
    - { resource: '../dev/*.{php,xml,yaml,yml}', type: 'glob' }

it didn't work because the FileLoader resolves the glob pattern but forwards the glob type. This meant the resolver then choses the GlobFilerLoader again for each already resolved file which does not find the files. So in the end the glob was resolved but the files never imported.
The workaround is to remove the type: glob from the import above. But the real fix should be to not forward the glob type when it's already resolved.

@nicolas-grekas nicolas-grekas changed the title fix import from config file using type: glob [Config] fix import from config file using type: glob Mar 13, 2020
@nicolas-grekas
Copy link
Member

Thank you @Tobion.

@nicolas-grekas nicolas-grekas merged commit 148b13c into symfony:3.4 Mar 13, 2020
This was referenced Mar 27, 2020
@Tobion Tobion deleted the fix-glob-import branch May 25, 2020 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants