Skip to content
Corex

DynamicBlockRegistrar

Corex\Blocks\DynamicBlockRegistrar · class · Blocks layer

Registers a discovered block via register_block_type (conditional assets come from its block.json — no global enqueue). When the block’s metadata names a corex.renderer, the render callback resolves that BlockRenderer from the container and stays non-fatal: a throwable yields empty output + a logged warning (spec FR-005, FR-008, FR-010).

__construct(ContainerInterface $container, BootLogger $logger, PluginMountMap $mountMap, BlockPathResolver $resolver)

Section titled “__construct(ContainerInterface $container, BootLogger $logger, PluginMountMap $mountMap, BlockPathResolver $resolver)”

renderCallback(string $rendererClass): callable

Section titled “renderCallback(string $rendererClass): callable”

The container-resolved render callback (exposed for headless testing).