symfony-cmf/block-bundle
Symfony CMF BlockBundle lets you create and manage reusable content blocks in Symfony apps, integrating with PHPCR-ODM and the CMF stack. Define blocks in code or the CMS, render them in templates, and reuse them across pages with flexible block types.
symfony-cmf/block-bundle (v2.1.1) remains tightly coupled to Symfony CMF and SonataBlockBundle, reinforcing its suitability for legacy Symfony 3.x/4.x CMS applications with PHPCR ODM. The template path update (@CmfBlock/Block/...) aligns with Symfony’s modern Twig namespace conventions, reducing friction for apps already using Symfony 4.x+ but still dependent on this stack.CmfBlockBundl:Block:...). This reduces backward compatibility further, despite the bundle’s already archived state.api-platform + custom block entities.spatie/laravel-blocks or filament/blocks.CmfBlockBundl:Block:...)? What’s the migration effort to update them to @CmfBlock/Block/...?CmfBlockBundl:Block:...). Prioritize updates to @CmfBlock/Block/....# config/packages/sonata_block.yaml
sonata_block:
default_contexts: [cms]
blocks:
sonata.block.service.block: ~
app.block.custom: ~
templates:
block: "@CmfBlock/Block/default.html.twig" # Updated namespace
Block entity with type, position).SonataBlockBundle with a lightweight service (e.g., Symfony’s BlockBuilderInterface).EventDispatcher to bridge PHPCR events to Doctrine listeners (e.g., on block creation/update).spatie/laravel-blocks).symfony-cmf/routing and symfony-cmf/core-bundle are compatible with Symfony 4.x. Symfony 5.x+ is untested.How can I help you explore Laravel packages today?