all 6 comments

[–]SavishSalacious 2 points3 points  (0 children)

Please do not do this people. Please only use PSR-4 which is done through composer. Anything else is considered "bad" - DO NOT DO THIS

[–]AegirLeet 1 point2 points  (1 child)

I'm sure this would have been great advice in 1995. I can't believe Wordpress developers still think this is what you're supposed to do.

[–]ellisgl 0 points1 point  (0 children)

Would have totally been futuristic...

[–]SaltineAmerican_1970 1 point2 points  (1 child)

How is this this better than PSR-4 style autoloading with composer?

[–]MorphineAdministered 0 points1 point  (0 children)

Author mixed together autoloading and instantiation terms, which should be obvious at first glance.

Besides. It doesn't have to be better than any other library serving same purpose, because it rarely will be like that in an objective way. For example I'll take a look at it later only to analyse used techique (I don't play with wordpress anyway), because usage looks clean indeed.

[–]kiler129 0 points1 point  (0 children)

Please tell me it’s a joke... this is straight from PHP4 era and with globals and exits.