BreadcrumbListener::onBlock:error=选项";上下文”;不存在


BreadcrumbListener::onBlock: error = The option "context" does not exist

在Sonata PageBundle安装在工作应用程序之上时,转到.../app_dev.php/会产生

event.DEBUG: Notified event "sonata.block.event.breadcrumb" to listener "Sonata'SeoBundle'Event'BreadcrumbListener::onBlock". [] []
app.ERROR: [cms::blockContext] block.id=54008 - error while resolving options - The option "context" does not exist. Known options are: "attr", "cache_policy", "children_class", "current_class", "current_uri", "extra_cache_keys", "first_class", "include_homepage_link", "last_class", "menu_class", "menu_name", "menu_template", "safe_labels", "template", "title", "ttl", "use_cache" [] []
app.INFO: [cms::renderBlock] block.id=54008, block.type=sonata.seo.block.breadcrumb.homepage  [] []

是否存在解决方案?

再次被认为网页是关于如何做某事的最新信息所愚弄。隐藏在...'vendor'sonata-project'cache-bundle'Resources'doc'installation.rst内部的是建议:

Add block context manager:
.. code-block:: yaml
    # app/config/config.yml
    sonata_block:
        context_manager: sonata.page.block.context_manager