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

[SF7] Fix resource loader #890

Merged
merged 2 commits into from
May 29, 2024
Merged

Conversation

loic425
Copy link
Member

@loic425 loic425 commented May 23, 2024

Q A
Bug fix? yes on sf7
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

Based on #887

image

@loic425 loic425 requested a review from a team as a code owner May 23, 2024 14:30
@loic425 loic425 mentioned this pull request May 23, 2024
13 tasks
@loic425 loic425 force-pushed the fix/resource-loader branch 2 times, most recently from 0d6fcbf to c349afa Compare May 23, 2024 14:37
*/
public function getResolver()
public function getResolver(): LoaderResolverInterface
Copy link
Member

Choose a reason for hiding this comment

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

Since it will crash if getResolver will be called before setResolver, let's handle it the same as in symfony.

https://github.com/symfony/symfony/blob/bed9c3660c0106049622eead422fcb3921f8dd21/src/Symfony/Component/Config/Loader/Loader.php#L24-L37

@loic425 loic425 merged commit 06dc029 into Sylius:symfony-7 May 29, 2024
19 of 20 checks passed
@loic425 loic425 deleted the fix/resource-loader branch May 29, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants