Skip to content

Commit 3d6e956

Browse files
author
Geoffrey Vincent
committed
Fix old use of mime_types configuration
1 parent b38db72 commit 3d6e956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/MimeTypeListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function onKernelRequest(GetResponseEvent $event)
4848
$request = $event->getRequest();
4949

5050
if (HttpKernelInterface::MASTER_REQUEST === $event->getRequestType()) {
51-
foreach ($this->mimeTypes as $format => $mimeType) {
51+
foreach ($this->mimeTypes['formats'] as $format => $mimeType) {
5252
$request->setFormat($format, $mimeType);
5353
$this->formatNegotiator->registerFormat($format, (array) $mimeType, true);
5454
}

0 commit comments

Comments
 (0)