From ef244db7c690c84485c9d2d6b47d2c90af75e5e3 Mon Sep 17 00:00:00 2001 From: Lukas Kahwe Smith Date: Thu, 15 Aug 2013 14:43:01 +0200 Subject: [PATCH] fix issue where the view handler when enabling the jsonp support would not be public --- DependencyInjection/FOSRestExtension.php | 1 + 1 file changed, 1 insertion(+) 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')));