xy2z / capro

PHP8 static site generator
MIT License
8 stars 2 forks source link

Autoload client's autoload.php file #30

Closed xy2z closed 7 months ago

xy2z commented 7 months ago

Now that it's using phar, it doesn't autoload the client's vendor/autoload.php anylonger, which doesn't work if you are using eg. Guzzle in the config files, then you have to manually require the autoload.php file. So do this automatically.

something like: if file exists ( getcwd() /vendor/autoload.php -> require_once getcwd() /vendor/autoload.php

might need to be disabled for the capro-dev itself, so it doesn't double load autoload.php file

xy2z commented 7 months ago

Fixed