Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Fix the Twig_Environment service in the container tests for Twig 2 #379

Merged
merged 3 commits into from
Aug 31, 2015

Conversation

stof
Copy link
Member

@stof stof commented Aug 31, 2015

No description provided.

@stof stof force-pushed the twig_2 branch 4 times, most recently from abd2c34 to cfe110b Compare August 31, 2015 23:03
@stof stof merged commit 820093c into symfony:master Aug 31, 2015
stof added a commit that referenced this pull request Aug 31, 2015
…r Twig 2 (stof)

This PR was merged into the 2.6-dev branch.

Discussion
----------

Fix the Twig_Environment service in the container tests for Twig 2

Commits
-------

820093c Refactor the static assets helper to use Symfony 3 APIs
275f6fe Fix tests for Symfony 3 by enabling the asset component
a20ce0a Fix the Twig_Environment service in the container tests
@stof stof deleted the twig_2 branch August 31, 2015 23:13
{
// Symfony <2.7 BC
if (!$assetsHelper instanceof AssetsHelper && !$assetsHelper instanceof CoreAssetsHelper) {
throw new \InvalidArgumentException('Argument 1 passed to '.__METHOD__.' must be an instance of Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper or Symfony\Component\Templating\Helper\CoreAssetsHelper, instance of '.get_class($assetsHelper).' given');
if (!$packages instanceof Packages && !$packages instanceof CoreAssetsHelper) {
Copy link
Member

Choose a reason for hiding this comment

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

What's the goal of this if statement ? Nothing is done in the body.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants