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

Not working in Lumen #423

Open
burgoyn1 opened this issue Feb 25, 2022 · 1 comment
Open

Not working in Lumen #423

burgoyn1 opened this issue Feb 25, 2022 · 1 comment

Comments

@burgoyn1
Copy link

I followed the instructions to add the package to lumen, but I get the following error:

Call to undefined function TwigBridge\Node\resolve()

In the file: /src/Node/EventNode.php on line 32, the function resolve() is called, but it is undefined.

@mastir
Copy link

mastir commented Apr 4, 2024

src/Node/EventNode.php:33 
- $env = resolve('view');
+ $env = app('view');

resolve() is a helper function in laravel, doing nothing but call app() probably left for compatibility with older versions. helpers are not loaded by default in Lumen

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