bentaylorwork / php-azure-key-vault

A simple Proof Of Concept wrapper for the Azure RM API making it easy to comsume Azure Key Vault Secrets and Encrypt\DeCrypt strings with a Key.
https://www.bentaylor.work
MIT License
13 stars 10 forks source link

Error - Class Secret not found #2

Open mzac opened 4 years ago

mzac commented 4 years ago

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 commented 3 years ago

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.