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

Error - Class Secret not found #2

Open
mzac opened this issue Oct 9, 2020 · 1 comment
Open

Error - Class Secret not found #2

mzac opened this issue Oct 9, 2020 · 1 comment

Comments

@mzac
Copy link

mzac commented Oct 9, 2020

I'm testing out the examples to integrate with one of my applications and I keep getting this error. Everything looks ok but no matter what I try I keep getting it!

Fatal error: Uncaught Error: Class 'bentaylorwork\azure\keyvault\Secret' not found in /var/www/html/test.php:10
Stack trace:
#0 {main}
  thrown in /var/www/html/test.php on line 10

root@18b44c5b16d6:/var/www/html# php -v
PHP 7.4.11 (cli) (built: Oct  1 2020 19:35:35) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
@lf-jeremy
Copy link

This composer package is setup to use psr-0 autoloading but it is not compliant and will only work on case-insensitive filesystems such as Windows because the repo does not use capitalization for its filenames to match the class names.

It's possible to work around this problem by using https://www.php.net/manual/en/function.spl-autoload-register.php with an autoloader implementation that searches for lowercase filenames.

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