Answer the question
In order to leave comments, you need to log in
How to autoload composer to load functions?
Began to deal with autoloading through composer;
There is a Help folder at the root, where there are both files with classes (a class for working with storage, in the form of a folder with json files), and files with simple functions (for example, config ('filename.variable'), I see no reason to start a class for it) . The question was how to automatically load all this through composer autoload?
In composer.json indicated
"autoload": {
"classmap": [
"Help/"
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question