Answer the question
In order to leave comments, you need to log in
Do I need to spread class loaders into different classes to maintain the Single Responsibility Principle?
There is actually a class that configures the application (core.php). It sets encodings and declares global helper CONSTANTS. Is it possible to write autoload functions into it, or is it better to put them in separate classes? (spl_autoload)
Answer the question
In order to leave comments, you need to log in
Have you just been thrashed? In the yard 2016))
The Internet is full of articles "why global variables are evil."
PSR-4 + composer. Autoloading is a problem solved a long time ago, you should not invent an unnecessary bicycle for anyone (including you).
and declares global auxiliary variables.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question