sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Unable to render a custom block on admin dashboard with latest 3.1 #3884

Closed romainneutron closed 6 years ago

romainneutron commented 8 years ago
Question Answer
Bundle version 3.1
Symfony version 2.8.6
php version PHP 7.0.6
sonata-project/admin-bundle              3.1.0 The missing Symfony Admin Generator
sonata-project/block-bundle              3.0.0 Symfony SonataBlockBundle
sonata-project/cache                     1.0.7 Cache library
sonata-project/core-bundle               3.0.0 Symfony SonataCoreBundle
sonata-project/doctrine-orm-admin-bundle 3.0.1 Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/exporter                  1.4.1 Lightweight Exporter library

Error message

An exception has been thrown during the rendering of a template ("The option "metric_prefix" does not exist. Defined options are: "attr", "extra_cache_keys", "template", "ttl", "use_cache".") in SonataAdminBundle:Core:dashboard.html.twig at line 60.

Steps to reproduce

I've described a configuration like this:

sonata_admin:
    title: My Admin
    dashboard:
        blocks:
            -
                position: top
                type: app.admin.block.graphs
                class: col-md-12
                settings:
                    metric_prefix: stats.%metric.prefix%

with a service:

        <service id="app.admin.block.graphs" class="Bundle\AppBundle\Admin\Block\GraphsBlockService">
            <tag name="sonata.block" />
            <argument>app.admin.block.graphs</argument>
            <argument type="service" id="templating" />
        </service>

Here's my class:

namespace Bundle\AppBundle\Admin\Block;

use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\CoreBundle\Validator\ErrorElement;
use Sonata\BlockBundle\Model\BlockInterface;
use Sonata\BlockBundle\Block\BlockContextInterface;
use Sonata\BlockBundle\Block\BaseBlockService;

class GraphsBlockService extends BaseBlockService
{
    public function getName()
    {
        return 'App Graphs';
    }

    public function setDefaultSettings(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults([
            'title' => 'App Graphs',
            'template' => '@App/Admin/Block/app-graphs.html.twig',
            'metric_endpoint' => 'https://graphite.monitoring',
            'metric_prefix' => null,
        ]);
    }

    public function buildEditForm(FormMapper $formMapper, BlockInterface $block)
    {
        $formMapper->add('settings', 'sonata_type_immutable_array', [
            'keys' => [
                ['title', 'text', ['required' => false]],
            ],
        ]);
    }

    public function validateBlock(ErrorElement $errorElement, BlockInterface $block)
    {
        $errorElement
            ->with('settings[title]')
                ->assertNotNull(array())
                ->assertNotBlank()
                ->assertMaxLength(array('limit' => 50))
            ->end();
    }

    public function execute(BlockContextInterface $blockContext, Response $response = null)
    {
        return $this->renderResponse($blockContext->getTemplate(), [
            'block' => $blockContext->getBlock(),
            'settings' => $blockContext->getSettings(),
        ], $response);
    }
}

When I render the admin dashboard, I got the error

Expected results

No error, rendering

Actual results

error

romainneutron commented 8 years ago

I've created a reproducer to help you: https://github.com/romainneutron/sonata-reproducer

Just

git clone
composer install
./bin/console server:run

and go to http://localhost:8000/app_dev.php/admin/dashboard

[1] Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("The option "metric_prefix" does not exist. Defined options are: "attr", "extra_cache_keys", "template", "ttl", "use_cache".") in "SonataAdminBundle:Core:dashboard.html.twig" at line 60. at n/a in sonata-reproducer/var/cache/dev/classes.php line 5223 at Twig_Template->displayBlock('content', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => '', '_form' => '', '_show' => '', '_list_table' => '', '_list_filters' => '', '_tab_menu' => ''), array('html_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_javascripts'), 'sonata_head_title' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_top_nav_menu'), 'sonata_wrapper' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_bootlint'), 'title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content')), true) in sonata-reproducer/var/cache/dev/classes.php line 5238 at Twig_Template->renderBlock('content', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => '', '_form' => '', '_show' => '', '_list_table' => '', '_list_filters' => '', '_tab_menu' => ''), array('html_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_javascripts'), 'sonata_head_title' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_top_nav_menu'), 'sonata_wrapper' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_bootlint'), 'title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/twig/84/84eb661bb8bd0cc373249a110ffe16b2c7432d3b92bd03f4e5a870979857694f.php line 62 at __TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7->doDisplay(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => '', '_form' => '', '_show' => '', '_list_table' => '', '_list_filters' => '', '_tab_menu' => ''), array('html_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_javascripts'), 'sonata_head_title' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_top_nav_menu'), 'sonata_wrapper' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_bootlint'), 'title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/classes.php line 5316 at Twig_Template->displayWithErrorHandling(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('html_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_javascripts'), 'sonata_head_title' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_top_nav_menu'), 'sonata_wrapper' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_bootlint'), 'title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/classes.php line 5297 at Twig_Template->display(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/twig/4c/4c893f6d6d4f5ec82ce459108ba2ca3a6d58f66a0ba24dea34d35c92342132fb.php line 28 at __TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9->doDisplay(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/classes.php line 5316 at Twig_Template->displayWithErrorHandling(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/classes.php line 5297 at Twig_Template->display(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()))) in sonata-reproducer/var/cache/dev/classes.php line 5304 at Twig_Template->render(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()))) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 50 at Symfony\Bridge\Twig\TwigEngine->render('SonataAdminBundle:Core:dashboard.html.twig', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()))) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 50 at Symfony\Bundle\TwigBundle\TwigEngine->render('SonataAdminBundle:Core:dashboard.html.twig', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()))) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 75 at Symfony\Bundle\TwigBundle\TwigEngine->renderResponse('SonataAdminBundle:Core:dashboard.html.twig', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array())), object(Response)) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 212 at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('SonataAdminBundle:Core:dashboard.html.twig', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()))) in sonata-reproducer/vendor/sonata-project/admin-bundle/Controller/CoreController.php line 52 at Sonata\AdminBundle\Controller\CoreController->dashboardAction() in line at call_user_func_array(array(object(CoreController), 'dashboardAction'), array()) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 148 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 66 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 169 at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) in sonata-reproducer/web/app_dev.php line 30 [2] Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException: The option "metric_prefix" does not exist. Defined options are: "attr", "extra_cache_keys", "template", "ttl", "use_cache". at n/a in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Component/OptionsResolver/OptionsResolver.php line 685 at Symfony\Component\OptionsResolver\OptionsResolver->resolve(array('metric_prefix' => 'le prefix des metrics')) in sonata-reproducer/vendor/sonata-project/block-bundle/Block/BlockContextManager.php line 298 at Sonata\BlockBundle\Block\BlockContextManager->resolve(object(Block), array('metric_prefix' => 'le prefix des metrics')) in sonata-reproducer/vendor/sonata-project/block-bundle/Block/BlockContextManager.php line 150 at Sonata\BlockBundle\Block\BlockContextManager->get(array('type' => 'app.admin.block.graphs', 'settings' => array('metric_prefix' => 'le prefix des metrics')), array('metric_prefix' => 'le prefix des metrics')) in sonata-reproducer/vendor/sonata-project/block-bundle/Templating/Helper/BlockHelper.php line 345 at Sonata\BlockBundle\Templating\Helper\BlockHelper->render(array('type' => 'app.admin.block.graphs', 'settings' => array('metric_prefix' => 'le prefix des metrics'))) in sonata-reproducer/var/cache/dev/twig/4c/4c893f6d6d4f5ec82ce459108ba2ca3a6d58f66a0ba24dea34d35c92342132fb.php line 214 at __TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9->block_content(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => '', '_form' => '', '_show' => '', '_list_table' => '', '_list_filters' => '', '_tab_menu' => '', 'has_left' => false, 'has_center' => false, 'has_right' => false, 'has_top' => true, 'has_bottom' => false, '_parent' => array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => '', '_form' => '', '_show' => '', '_list_table' => '', '_list_filters' => '', '_tab_menu' => '', 'has_left' => false, 'has_center' => false, 'has_right' => false, 'has_top' => true, 'has_bottom' => false), '_seq' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'block' => array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array()), '_key' => '0'), array('html_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_javascripts'), 'sonata_head_title' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_top_nav_menu'), 'sonata_wrapper' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_bootlint'), 'title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/classes.php line 5212 at Twig_Template->displayBlock('content', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => '', '_form' => '', '_show' => '', '_list_table' => '', '_list_filters' => '', '_tab_menu' => ''), array('html_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_javascripts'), 'sonata_head_title' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_top_nav_menu'), 'sonata_wrapper' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_bootlint'), 'title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content')), true) in sonata-reproducer/var/cache/dev/classes.php line 5238 at Twig_Template->renderBlock('content', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => '', '_form' => '', '_show' => '', '_list_table' => '', '_list_filters' => '', '_tab_menu' => ''), array('html_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_javascripts'), 'sonata_head_title' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_top_nav_menu'), 'sonata_wrapper' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_bootlint'), 'title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/twig/84/84eb661bb8bd0cc373249a110ffe16b2c7432d3b92bd03f4e5a870979857694f.php line 62 at __TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7->doDisplay(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => '', '_form' => '', '_show' => '', '_list_table' => '', '_list_filters' => '', '_tab_menu' => ''), array('html_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_javascripts'), 'sonata_head_title' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_top_nav_menu'), 'sonata_wrapper' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_bootlint'), 'title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/classes.php line 5316 at Twig_Template->displayWithErrorHandling(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('html_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_javascripts'), 'sonata_head_title' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_top_nav_menu'), 'sonata_wrapper' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_bbf093f06f785a025a1fe329d269268f66c745a4d55021c2249d0b124ad338e7), 'block_bootlint'), 'title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/classes.php line 5297 at Twig_Template->display(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/twig/4c/4c893f6d6d4f5ec82ce459108ba2ca3a6d58f66a0ba24dea34d35c92342132fb.php line 28 at __TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9->doDisplay(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/classes.php line 5316 at Twig_Template->displayWithErrorHandling(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_title'), 'breadcrumb' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_breadcrumb'), 'content' => array(object(__TwigTemplate_1801e8dbc7df109ef1c4ae6a9ef05591823ae307441cb904d71442e994d2c8b9), 'block_content'))) in sonata-reproducer/var/cache/dev/classes.php line 5297 at Twig_Template->display(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()))) in sonata-reproducer/var/cache/dev/classes.php line 5304 at Twig_Template->render(array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()))) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 50 at Symfony\Bridge\Twig\TwigEngine->render('SonataAdminBundle:Core:dashboard.html.twig', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()))) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 50 at Symfony\Bundle\TwigBundle\TwigEngine->render('SonataAdminBundle:Core:dashboard.html.twig', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()))) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 75 at Symfony\Bundle\TwigBundle\TwigEngine->renderResponse('SonataAdminBundle:Core:dashboard.html.twig', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array())), object(Response)) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 212 at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('SonataAdminBundle:Core:dashboard.html.twig', array('base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'blocks' => array('top' => array(array('position' => 'top', 'type' => 'app.admin.block.graphs', 'class' => 'col-md-12', 'settings' => array('metric_prefix' => 'le prefix des metrics'), 'roles' => array())), 'left' => array(), 'center' => array(), 'right' => array(), 'bottom' => array()))) in sonata-reproducer/vendor/sonata-project/admin-bundle/Controller/CoreController.php line 52 at Sonata\AdminBundle\Controller\CoreController->dashboardAction() in line at call_user_func_array(array(object(CoreController), 'dashboardAction'), array()) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 148 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 66 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in sonata-reproducer/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 169 at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) in sonata-reproducer/web/app_dev.php line 30
greg0ire commented 8 years ago

Problem reproduced. It looks like setDefaultSettings is never called.

greg0ire commented 8 years ago
    protected function setDefaultSettings(OptionsResolverInterface $optionsResolver, BlockInterface $block)
    {
        if (get_called_class() !== __CLASS__) {
            @trigger_error('The '.__METHOD__.' is deprecated since version 2.3, to be renamed in 3.0. Use '.__CLASS__.'::configureSettings instead.', E_USER_DEPRECATED);
        }
        $this->configureSettings($optionsResolver, $block);
    }

Hum…

soullivaneuh commented 8 years ago

@greg0ire This is from me, I have to investigate.

The best thing to do for the moment is to use configureSettings instead.

greg0ire commented 8 years ago

I thought it would change nothing, but I get another error when trying that.

An exception has been thrown during the rendering of a template ("There are no registered paths for namespace "App".") in SonataAdminBundle:Core:dashboard.html.twig at line 60.

greg0ire commented 8 years ago

@greg0ire This is from me, I have to investigate.

Ok, I'll let you manage that one.

romainneutron commented 8 years ago

thanks guys

romainneutron commented 8 years ago

@greg0ire I tried what you said, I used configureSettings instead of setDefaultSettings an dI got the error

An exception has been thrown during the rendering of a template ("There are no registered paths for namespace "App".") in SonataAdminBundle:Core:dashboard.html.twig at line 60.

But it's normal, I forgot to add the template in my reproducer!

So thank you, this works.

What about dropping the use of setDefaultSettings?

greg0ire commented 8 years ago

What about dropping the use of setDefaultSettings?

There is already a deprecation warning, which means it will be dropped in the next major. The problem is that somehow, the forward to configureSettings does not work…

greg0ire commented 8 years ago

@Soullivaneuh should we close this or leave it open for you?

OskarStark commented 8 years ago

3.1 should work with both methods or am i wrong?

greg0ire commented 8 years ago

3.1 should work with both methods or am i wrong?

No, I think you're right, that's what I was pointing out by "The problem is that somehow, the forward to configureSettings does not work…"

shawe commented 7 years ago

@romainneutron please, can you update your repo with the solved issue? I think that I've the same problem but I can't solve it.

OskarStark commented 7 years ago

@shawe which version of SonataAdminBundle are you using?

samanmohamadi commented 7 years ago

I have the Same problem. sonata-project/admin-bundle 3.19.0
sonata-project/block-bundle 3.3.2

samanmohamadi commented 7 years ago

and when I use configureSettings I get another error: Variable "block" does not exist.( line )

icedevelopment commented 7 years ago

Any news regarding this issue?

shawe commented 7 years ago

@OskarStark I'm not sure now, but in my composer.lock appear version 3.18.2. I believe that for me, the problem start with 3.18.3, I remember that I need to downgrade one version of a package to 0.0.1 less, but some month after I don't remember it clearly and exactly what specific downgrade solve the issue for me now.