symfony-cmf/symfony-cmf — comment on commit f05ce28ea1997eba56071b30acf15b828aba1d22
File:  line 0
By elHornair:

@uwej711 The BlockServiceManager is not loading Blocks, but BlockServices. To do so it needs to get an actual block. That's why I created our own twig-extension, that loads a block. Compare https://github.com/sonata-project/SonataBlockBundle/blob/master/Twig/Extension/BlockExtension.php#L119 and https://github.com/symfony-cmf/symfony-cmf/blob/block_bundle/src/Symfony/Cmf/Bundle/BlockBundle/Twig/Extension/BlockExtension.php#L56.
But you are right, if we could change the BlockServiceManager to get a Service injected that takes care of loading actual blocks from block-names, we could share the twig-extension (also it would be cleaner, because it's not really the task of the twig-extension to load blocks). Shall I create a pull request on the BlockServiceManager?
On the other hand, cmf-users might get confused by the name they have to use to render in a template (sonata_render_block). Is it possible to create an alias for a twig-extension?