addCompilerPass(new class implements CompilerPassInterface { public function process(ContainerBuilder $container): void { foreach ($container->findTaggedServiceIds('frontend.contentobject') as $id => $tags) { $container->findDefinition($id)->setShared(false); } } }); };