On 26/01/2017 21:37, Walter Parker wrote:
Why are functions useless when using Composer? Is it because functions can't be autoloaded? Is this about getting functions to load without having to stick them in classes that can be autoloaded?
Yes, and yes. The subject line of this thread is an allusion to a conversation that resurfaces every now and then but always hits one roadblock or another.
In short: the majority of PHP applications and frameworks are based around autoloading rather than long lists of explicit dependencies; functions can be inside a namespace; but such a function must be explicitly defined before use.
Regards, -- Rowan Collins [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php