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

apache_request_headers() undefined #104

Closed
maksymkhar opened this issue Feb 27, 2016 · 6 comments
Closed

apache_request_headers() undefined #104

maksymkhar opened this issue Feb 27, 2016 · 6 comments

Comments

@maksymkhar
Copy link

When I extend ApiGuardController in my controller I get this error.

FatalThrowableError in ApiGuard.php line 195: Fatal error: Call to undefined function Chrisbjr\ApiGuard\Http\Middleware\apache_request_headers()

Not all PHP configs support apache_request_headers. Are you planning fix it?

PHP docs

@chrisbjr
Copy link
Owner

Hi @maksymkhar try using the dev-master branch instead for the meantime

@maksymkhar
Copy link
Author

Hi @chrisbjr, thank you for the reply.

I tried the dev-master branch but i get the following error:

FatalThrowableError in ApiGuardController.php line 38: Fatal error: Class 'ApiGuardAuth' not found

@maksymkhar
Copy link
Author

I tried add aliase in the app.php file following this issue: #101 and I get this error:

FatalThrowableError in ApiGuardAuth.php line 14: Type error: Argument 1 passed to Chrisbjr\ApiGuard\ApiGuardAuth::__construct() must be an instance of Chrisbjr\ApiGuard\Contracts\Providers\Auth, null given, called in /home/vagrant/Code/NotiApp/vendor/chrisbjr/api-guard/src/Providers/ApiGuardServiceProvider.php on line 49

Any idea?

@ivannovak
Copy link

@maksymkhar - have a look at the difference between your config/apigaurd.php and vendor/chrisbjr/api-guard/config/apiguard.php then reconcile.

@maksymkhar
Copy link
Author

@ivannovak Awesome, that's it! Thanks!!

@chrisbjr
Copy link
Owner

chrisbjr commented Mar 9, 2016

Hi all, please use 3.1.x

@chrisbjr chrisbjr closed this as completed Mar 9, 2016
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

3 participants