File tree 2 files changed +5
-6
lines changed
src/Symfony/Bundle/FrameworkBundle
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -73,11 +73,6 @@ public function boot()
73
73
if ($ trustedHosts = $ this ->container ->getParameter ('kernel.trusted_hosts ' )) {
74
74
Request::setTrustedHosts ($ trustedHosts );
75
75
}
76
-
77
- if ($ this ->container ->has ('mime_types ' )) {
78
- $ mt = $ this ->container ->get ('mime_types ' );
79
- $ mt ->setDefault ($ mt );
80
- }
81
76
}
82
77
83
78
public function build (ContainerBuilder $ container )
Original file line number Diff line number Diff line change 7
7
<services >
8
8
<defaults public =" false" />
9
9
10
- <service id =" mime_types" class =" Symfony\Component\Mime\MimeTypes" public =" true" />
10
+ <service id =" mime_types" class =" Symfony\Component\Mime\MimeTypes" >
11
+ <call method =" setDefault" >
12
+ <argument type =" service" id =" mime_types" />
13
+ </call >
14
+ </service >
11
15
</services >
12
16
</container >
You can’t perform that action at this time.
0 commit comments