diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Asset/BundlePackage.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Asset/BundlePackage.php
new file mode 100644
index 0000000000000..e401ef6641d5c
--- /dev/null
+++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Asset/BundlePackage.php
@@ -0,0 +1,25 @@
+bundleDir = 'bundles/' . strtolower(str_replace('Bundle', '', $bundleName));
+ }
+
+ public function getUrl($path, $version = null)
+ {
+ if (isset($this->bundleDir))
+ $path = $this->bundleDir . '/' . ltrim($path, '/');
+
+ return parent::getUrl($path, $version);
+ }
+
+}
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
index 7bed3b042ce0b..35ccae328c594 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
@@ -200,13 +200,6 @@ public function testTemplating()
$this->assertEquals(array('FrameworkBundle:Form', 'theme1', 'theme2'), $container->getParameter('templating.helper.form.resources'), '->registerTemplatingConfiguration() registers the theme and adds the base theme');
}
- public function testTemplatingAssetsHelperScopeDependsOnPackageArgumentScopes()
- {
- $container = $this->createContainerFromFile('templating_url_package');
-
- $this->assertNotEquals('request', $container->getDefinition('templating.helper.assets')->getScope(), '->registerTemplatingConfiguration() does not set request scope on assets helper if no packages are request-scoped');
- }
-
public function testTranslator()
{
$container = $this->createContainerFromFile('full');
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy