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

Exception when using with Lumen #58

Closed
vojtasvoboda opened this issue Oct 30, 2017 · 2 comments
Closed

Exception when using with Lumen #58

vojtasvoboda opened this issue Oct 30, 2017 · 2 comments

Comments

@vojtasvoboda
Copy link

vojtasvoboda commented Oct 30, 2017

I know this library is only for Laravel, but I think it wouldn't be a big issue to make it works also with Lumen. Now it throws:

PHP Fatal error:  Uncaught ReflectionException: Class path.storage does not exist in /Users/VojtaSvoboda/Www/test/vendor/laravel/framework/src/Illuminate/Container/Container.php:752

But when you add these two lines to bootstrap.app:

$app->instance('path.config', app()->basePath() . DIRECTORY_SEPARATOR . 'config');
$app->instance('path.storage', app()->basePath() . DIRECTORY_SEPARATOR . 'storage');

it works well. But it would be better to works without these two lines, be default.

@vojtasvoboda
Copy link
Author

Related issue: laravel/lumen-framework#504 (they say it could be bug in 3th party library - in this case graphql-laravel).

@rebing rebing closed this as completed Dec 12, 2017
@vojtasvoboda
Copy link
Author

What is the reason for close? It is solved, or other reason?

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