Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laminas support #188

Open
fabiang opened this issue Jan 27, 2020 · 2 comments
Open

Laminas support #188

fabiang opened this issue Jan 27, 2020 · 2 comments

Comments

@fabiang
Copy link
Contributor

fabiang commented Jan 27, 2020

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,
        ],
    ],
];
@fabiang
Copy link
Contributor Author

fabiang commented Nov 30, 2020

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!

@Saeven
Copy link
Contributor

Saeven commented Apr 12, 2021

@fabiang Thanks for the tip above, saved a ton of time digging in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants