Skip to content

[FrameworkBundle] fix assets and templating tests #17658

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
Feb 3, 2016

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 2, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #17506
License MIT
Doc PR

Now that the assets section is automatically enabled when templating
is enabled (see #17506), the templating.helper.assets will also be
present as soon as the templating section is activated.

@@ -547,11 +547,7 @@ private function registerTemplatingConfiguration(array $config, $ide, ContainerB
'Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\FilesystemLoader',
));

if ($container->hasDefinition('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.

isn't it still possible to disable the asset system if we don't need it ?

Copy link
Member Author

Choose a reason for hiding this comment

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

That would mean to revert #17506.

@@ -438,7 +438,15 @@ public function testAssetHelperWhenAssetsAreEnabled()

public function testAssetHelperWhenTemplatesAreEnabledAndAssetsAreDisabled()
{
$container = $this->createContainerFromFile('assets_disabled');
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't we remove also src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/assets_disabled.*?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, good catch. Thanks!

Now that the `assets` section is automatically enabled when `templating`
is enabled (see symfony#17506), the `templating.helper.assets` will also be
present as soon as the `templating` section is activated.
@fabpot
Copy link
Member

fabpot commented Feb 3, 2016

Thank you @xabbuh.

@fabpot fabpot merged commit 293df5d into symfony:3.0 Feb 3, 2016
fabpot added a commit that referenced this pull request Feb 3, 2016
This PR was merged into the 3.0 branch.

Discussion
----------

[FrameworkBundle] fix assets and templating tests

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

Now that the `assets` section is automatically enabled when `templating`
is enabled (see #17506), the `templating.helper.assets` will also be
present as soon as the `templating` section is activated.

Commits
-------

293df5d [FrameworkBundle] fix assets and templating tests
@xabbuh xabbuh deleted the assets-tests branch February 3, 2016 12:02
@fabpot fabpot mentioned this pull request Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants