8000 [Translator] ParameterNotFoundException for "translator.logging" when missing a config.yml · Issue #12989 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Translator] ParameterNotFoundException for "translator.logging" when missing a config.yml #12989

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

Closed
roderik opened this issue Dec 15, 2014 · 0 comments

Comments

@roderik
Copy link
roderik commented Dec 15, 2014

We are running phpunit tests on a bundle that uses Symfony Full Stack as a dependency, but does not have the standard edition supporting files at that stage.

On 2.6, these tests start to fail due to:

PHP Fatal error:  Uncaught exception 'Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException' with message 'You have requested a non-existent parameter "translator.logging".' in /home/travis/build/Kunstmaan/KunstmaanBundlesCMS/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php:106

This is due to the fact that LoggingTranslatorPass.php#L28 searches for 'translator.logging' and because there is no config.yml in play, this throws an ParameterNotFoundException.

fabpot added a commit that referenced this issue Dec 20, 2014
…lator.logging" doesn't exist. (aitboudad)

This PR was merged into the 2.6 branch.

Discussion
----------

[FrameworkBundle][Logging Translator] skip if param "translator.logging" doesn't exist.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets  | #12989
| Tests pass?   | yes
| License       | MIT

Commits
-------

1008991 skip if param "translator.logging" doesn't exist.
@fabpot fabpot closed this as completed Dec 20, 2014
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

No branches or pull requests

2 participants
0