8000 removed usage of the deprecated forms of asset() in the core framework · symfony/symfony@0750d02 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0750d02

Browse files
committed
removed usage of the deprecated forms of asset() in the core framework
1 parent f74a1f2 commit 0750d02

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/Symfony/Bundle/TwigBundle/Resources/views/Exception/exception_full.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends 'TwigBundle::layout.html.twig' %}
22

33
{% block head %}
4-
<link href="{{ asset('bundles/framework/css/exception.css', absolute=true) }}" rel="stylesheet" type="text/css" media="all" />
4+
<link href="{{ absolute_url(asset('bundles/framework/css/exception.css')) }}" rel="stylesheet" type="text/css" media="all" />
55
{% endblock %}
66

77
{% block title %}

src/Symfony/Bundle/TwigBundle/Resources/views/layout.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="{{ _charset }}" />
55
<meta name="robots" content="noindex,nofollow" />
66
<title>{% block title %}{% endblock %}</title>
7-
<link href="{{ asset('bundles/framework/css/structure.css', absolute=true) }}" rel="stylesheet" />
8-
<link href="{{ asset('bundles/framework/css/body.css', absolute=true) }}" rel="stylesheet" />
7+
<link href="{{ absolute_url(asset('bundles/framework/css/structure.css')) }}" rel="stylesheet" />
8+
<link href="{{ absolute_url(asset('bundles/framework/css/body.css')) }}" rel="stylesheet" />
99
{% block head %}{% endblock %}
1010
</head>
1111
<body>

src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ protected function setUp()
5252
$this->container->addScope(new Scope('request'));
5353
$this->container->register('request', 'Symfony\\Component\\HttpFoundation\\Request')->setScope('request');
5454
$this->container->register('router', $this->getMockClass('Symfony\\Component\\Routing\\RouterInterface'));
55-
$this->container->register('templating.helper.assets', $this->getMockClass('Symfony\\Component\\Templating\\Helper\\AssetsHelper'));
56-
$this->container->register('templating.helper.router', $this->getMockClass('Symfony\\Bundle\\FrameworkBundle\\Templating\\Helper\\RouterHelper'))
57-
->addArgument(new Reference('router'));
5855
$this->container->register('twig', 'Twig_Environment');
5956
$this->container->setParameter('kernel.bundles', array());
6057
$this->container->setParameter('kernel.cache_dir', __DIR__);

0 commit comments

Comments
 (0)
0