I don't know if I understood at all f3 documentation, but I'm trying to put additional classes into /app/vendor.
Each library comes with its own subfolder. For instance, Kint. In order to be autoloaded, I have to include all the route in the AUTOLOADin config.ini
Example:
AUTOLOAD=app/;app/vendor;app/Kint;app/vendor/etcetera...
But if I just have:
AUTOLOAD=app/;app/vendor/, all libraries inside vendor are not loaded. Is there any way to autoload recursively all libraries inside app/vendor/? (Something like... app/vendor/* ). Or do I have to put one by one?
Also, I'd like to autoload Kint only when the environment is set to development (got a constant DEVELOPMENT set to true). Is it possible to make conditional autoloads depending on the environment? If so, how I can put them in config.ini?
0 comments:
Post a Comment