Skip to content

Commit ef244db

Browse files
committed
fix issue where the view handler when enabling the jsonp support would not be public
1 parent 8e40b3e commit ef244db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DependencyInjection/FOSRestExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public function load(array $configs, ContainerBuilder $container)
135135

136136
if (!empty($config['view']['jsonp_handler'])) {
137137
$handler = new DefinitionDecorator($config['service']['view_handler']);
138+
$handler->setPublic(true);
138139

139140
$jsonpHandler = new Reference($this->getAlias().'.view_handler.jsonp');
140141
$handler->addMethodCall('registerHandler', array('jsonp', array($jsonpHandler, 'createResponse')));

0 commit comments

Comments
 (0)