Skip to content

[Config] Fallback to regular import when glob fails #22940

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

Merged
merged 1 commit into from
May 29, 2017

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #22938
License MIT
Doc PR -

Fixes a BC break as reported in linked issue.

} else {
foreach ($this->glob($resource, false, $_, $ignoreErrors) as $path => $info) {
++$ct;
if (is_string($resource) && false !== strpbrk($resource, '*?{[')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(...) || $type === 'glob' right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure it would change anything, so not to me

@fabpot
Copy link
Member

fabpot commented May 29, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 29802a2 into symfony:master May 29, 2017
fabpot added a commit that referenced this pull request May 29, 2017
…as-grekas)

This PR was merged into the 4.0-dev branch.

Discussion
----------

[Config] Fallback to regular import when glob fails

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #22938
| License       | MIT
| Doc PR        | -

Fixes a BC break as reported in linked issue.

Commits
-------

29802a2 [Config] Fallback to regular import when glob fails
@fabpot
Copy link
Member

fabpot commented May 29, 2017

Thank you @nicolas-grekas.

fabpot added a commit that referenced this pull request May 29, 2017
…as-grekas)

This PR was submitted for the master branch but it was merged into the 3.3 branch instead (closes #22940).

Discussion
----------

[Config] Fallback to regular import when glob fails

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #22938
| License       | MIT
| Doc PR        | -

Fixes a BC break as reported in linked issue.

Commits
-------

7b4066e [Config] Fallback to regular import when glob fails
@fabpot fabpot mentioned this pull request May 29, 2017
@Majkl578
Copy link
Contributor

Majkl578 commented May 29, 2017

This has broken my app while upgrading from 3.3.0-RC1 to 3.3.0. 😞

Symfony\Component\Config\Exception\FileLoaderLoadException:
Cannot load resource "[...]/etc/routing.{php,yaml}"

Kernel::configureRoutes() +- same as in the Flex recipe, etc/routing.yaml doesn't exist.

@nicolas-grekas
Copy link
Member Author

Please open an issue with a description of the conditions + reproducer if possible

@nicolas-grekas nicolas-grekas deleted the glob-fix branch May 29, 2017 22:08
@Majkl578
Copy link
Contributor

Here you go: #22950

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.

6 participants