File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
namespace Fabiang \AsseticBundle ;
4
4
5
5
use Laminas \Mvc \Application as MvcApplication ;
6
+ use Mezzio \Application as MezzioApplication ;
6
7
use Laminas \View \Renderer ;
7
8
use Laminas \ServiceManager \Factory \InvokableFactory ;
8
9
23
24
'Fabiang\AsseticBundle\Cli ' => Cli \ApplicationFactory::class,
24
25
Configuration::class => Factory \ConfigurationFactory::class,
25
26
AsseticMiddleware::class => Factory \AsseticMiddlewareFactory::class,
26
- // needed for Mezzio
27
- Renderer \PhpRenderer::class => InvokableFactory::class,
28
27
],
29
28
],
30
29
'assetic_configuration ' => [
44
43
];
45
44
}
46
45
46
+ if (class_exists (MezzioApplication::class)) {
47
+ // needed for Mezzio
48
+ $ config ['service_manager ' ]['factories ' ][Renderer \PhpRenderer::class] = InvokableFactory::class;
49
+ }
50
+
47
51
return $ config ;
48
52
})();
You can’t perform that action at this time.
0 commit comments