Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 1 commit into from
Apr 21, 2015
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh 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'));
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Member Author

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.

@fabpot
Copy link
Member

fabpot commented Apr 21, 2015

Thank you @xabbuh.

@fabpot fabpot merged commit 6928507 into symfony:2.7 Apr 21, 2015
fabpot added a commit that referenced this pull request Apr 21, 2015
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
@xabbuh xabbuh deleted the issue-14368 branch April 21, 2015 06:40
fabpot added a commit that referenced this pull request May 7, 2015
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
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.

3 participants