diff --git a/DependencyInjection/FOSRestExtension.php b/DependencyInjection/FOSRestExtension.php index 586f7a311..abfd2ab94 100644 --- a/DependencyInjection/FOSRestExtension.php +++ b/DependencyInjection/FOSRestExtension.php @@ -135,6 +135,7 @@ public function load(array $configs, ContainerBuilder $container) if (!empty($config['view']['jsonp_handler'])) { $handler = new DefinitionDecorator($config['service']['view_handler']); + $handler->setPublic(true); $jsonpHandler = new Reference($this->getAlias().'.view_handler.jsonp'); $handler->addMethodCall('registerHandler', array('jsonp', array($jsonpHandler, 'createResponse')));