Skip to content

Commit

Permalink
Fix deprecated BlockService::setDefaultSettings usage
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Jun 15, 2015
1 parent a24131f commit 9a180d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Block/TreeBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Sonata\BlockBundle\Model\BlockInterface;
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

class TreeBlockService extends BaseBlockService
{
Expand Down Expand Up @@ -61,7 +61,7 @@ public function execute(BlockContextInterface $blockContext, Response $response
/**
* {@inheritDoc}
*/
public function setDefaultSettings(OptionsResolverInterface $resolver)
public function configureSettings(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'template' => 'SonataDoctrinePHPCRAdminBundle:Block:tree.html.twig',
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "Symfony Sonata / Integrate Doctrine PHPCR into the SonataAdminBundle",
"keywords": ["Admin Generator", "admin", "sonata", "bootstrap"],
"license": "MIT",
"minimum-stability": "dev",
"authors": [
{
"name": "Nacho Martin",
Expand All @@ -19,6 +18,7 @@
"require": {
"php": ">=5.3.9",
"sonata-project/admin-bundle": "~2.4",
"sonata-project/block-bundle": "^2.3.2",
"symfony/framework-bundle": "~2.3",
"symfony/property-access": "~2.2",
"doctrine/phpcr-odm": "~1.1",
Expand All @@ -32,6 +32,8 @@
"provide": {
"sonata-project/admin-bundle-persistency-layer": "1.0.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": { "Sonata\\DoctrinePHPCRAdminBundle\\": "" }
},
Expand Down

0 comments on commit 9a180d6

Please sign in to comment.