zf2-assetic-module
zf2-assetic-module copied to clipboard
Laminas support
For those getting this error:
Uncaught AsseticBundle\Exception\InvalidArgumentException: no strategy defined for renderer "Laminas\View\Renderer\PhpRenderer"
put the following into your config:
<?php
use Laminas\View\Renderer;
use AsseticBundle\View;
return [
'assetic_configuration' => [
'rendererToStrategy' => [
Renderer\PhpRenderer::class => View\ViewHelperStrategy::class,
Renderer\FeedRenderer::class => View\NoneStrategy::class,
Renderer\JsonRenderer::class => View\NoneStrategy::class,
],
],
];
I've forked this module here: https://github.com/fabiang/assetic-module
What we've got so far:
- Laminas support
- Upgrade to the new Assetic 2.0 library
Version 2.5.0 was tested with ZF3 and Laminas. Report any problems back there. Thanks!
@fabiang Thanks for the tip above, saved a ton of time digging in the code.