Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #33092 [DependencyInjection] Improve an exception message (fabpot)
This PR was merged into the 4.3 branch. Discussion ---------- [DependencyInjection] Improve an exception message | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | n/a | License | MIT | Doc PR | n/a When defining a service with an id that is also a class name, you might have an error message like `Class “” used for service “\App\Some\Service” cannot be found.` if your is starts with a backslash. The new error message is now hopefully less cryptic: `Service definition "\App\Some\Service" has no class, and its name looks like a FQCN but it starts with a backslash; remove the leading backslash.` Commits ------- 3647cca [DependencyInjection] improved exception message
- Loading branch information