write_proxy_filesdoesn't work, because I can not configure the generating strategy. Have I missed something?
LazyServiceFactoryinstantiation logic look like?
'lazy_services' => [ // Mapping services to their class names is required // since the ServiceManager is not a declarative DIC. 'class_map' => [ Zend\Expressive\Template\TemplateRendererInterface::class => Zend\Expressive\Template\TemplateRendererInterface::class, ], // directory where proxy classes will be written - default to system_get_tmp_dir() 'proxies_target_dir' => 'data/cache/proxymanager', // namespace of the generated proxies, default to "ProxyManagerGeneratedProxy" 'proxies_namespace' => 'ProxyManagerGeneratedProxy', // whether the generated proxy classes should be written to disk or generated on-the-fly 'write_proxy_files' => true, ], 'delegators' => [ // we don't need the template renderer every request e.g. POST and we can initialize the locale via a middleware // the problem is that Twig loads all extensions if the render is created Zend\Expressive\Template\TemplateRendererInterface::class => [ \Zend\ServiceManager\Proxy\LazyServiceFactory::class, ], ],