Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
additional note for #345
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed May 27, 2016
1 parent d8c512c commit fed5a47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Block/TreeBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public function execute(BlockContextInterface $blockContext, Response $response
*/
public function setDefaultSettings(OptionsResolverInterface $resolver)
{
// the callables are a workaround to make bundle configuration win over the default values
// see https://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle/pull/345
$resolver->setDefaults(array(
'template' => function (Options $options, $value) { return $value ?: 'SonataDoctrinePHPCRAdminBundle:Block:tree.html.twig'; },
'id' => function (Options $options, $value) { return $value ?: '/'; },
Expand Down

0 comments on commit fed5a47

Please sign in to comment.