Skip to content

Commit

Permalink
fix issue where the view handler when enabling the jsonp support woul…
Browse files Browse the repository at this point in the history
…d not be public
  • Loading branch information
lsmith77 committed Aug 15, 2013
1 parent 8e40b3e commit ef244db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/FOSRestExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')));
Expand Down

0 comments on commit ef244db

Please sign in to comment.