-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
inject asset packages in assets helper service #14419
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
Conversation
xabbuh
commented
Apr 20, 2015
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #14368 |
License | MIT |
Doc PR |
@@ -558,6 +558,10 @@ private function registerTemplatingConfiguration(array $config, $ide, ContainerB | |||
'Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\FilesystemLoader', | |||
)); | |||
} | |||
|
|||
if ($container->hasDefinition('assets.packages')) { | |||
$container->getDefinition('templating.helper.assets')->replaceArgument(0, new Reference('assets.packages')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the helper service should be removed otherwise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though I didn't find circumstances where this ever will happen. If anyone can think of it, we could add a test covering it.
Thank you @xabbuh. |
This PR was merged into the 2.7 branch. Discussion ---------- inject asset packages in assets helper service | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #14368 | License | MIT | Doc PR | Commits ------- 6928507 inject asset packages in assets helper service
This PR was merged into the 3.0-dev branch. Discussion ---------- [FrameworkBundle] Fix assets test | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT I'm not sure about this change, but the tests introduced in #14419 are failing in master, the same error ocurrs in both tests: `Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The service definition "templating.helper.assets" does not exist.` Commits ------- 92e8799 Fixed test and fixture