Skip to content

Commit e185727

Browse files
committed
Removed symfony/asset depedency by inlining js/css
1 parent 7564416 commit e185727

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Resources/views/webprofiler.html.twig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@
4646
{% endblock %}
4747

4848
{% block head %}
49-
<link rel="stylesheet" href="{{ asset('bundles/httplug/style/httplug.css') }}" />
50-
<script type="text/javascript" src="{{ asset("bundles/httplug/script/httplug.js") }}"></script>
49+
<style>
50+
{{ include('@Httplug/style/httplug.css.twig') }}
51+
</style>
52+
<script type="text/javascript">
53+
{{ include('@Httplug/script/httplug.js.twig') }}
54+
</script>
5155
{{ parent() }}
5256
{% endblock %}
5357

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"php-http/message-factory": "^1.0.2",
2828
"php-http/stopwatch-plugin": "^1.0",
2929
"psr/http-message": "^1.0",
30-
"symfony/asset": "^2.8 || ^3.0 || ^4.0",
3130
"symfony/config": "^2.8 || ^3.0 || ^4.0",
3231
"symfony/dependency-injection": "^2.8.3 || ^3.0.3 || ^4.0",
3332
"symfony/event-dispatcher": "^2.8 || ^3.0 || ^4.0",

0 commit comments

Comments
 (0)