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

Doesn't work with composer #1

Open
Falsen opened this issue Dec 7, 2018 · 2 comments
Open

Doesn't work with composer #1

Falsen opened this issue Dec 7, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@Falsen
Copy link

Falsen commented Dec 7, 2018

Using composer I got the following error:
Fatal error: Class 'OpenNode\Unauthorized' not found in /root/www/lightning-flip/vendor/opennode/opennode-php/lib/Exception.php on line 31

However without composer there was no issue. I tried requiring the same library directly

require_once("/composer/opennode/opennode-php/init.php");

And it worked like a charm! Am I doing something wrong?

@joaodealmeida joaodealmeida added the bug Something isn't working label Dec 7, 2018
@joaodealmeida
Copy link
Contributor

Thanks for the feedback.
It looks like psr4 doesn't allow to have multiple classes in the same file. A fix is coming.

Meanwhile feel free to use it in the manual way.

@Falsen
Copy link
Author

Falsen commented Dec 8, 2018

Great! Awesome library by the way!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants