Re: Re: Not autoloading functions

From: Date: Thu, 26 Jan 2017 22:06:01 +0000
Subject: Re: Re: Not autoloading functions
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-97978@lists.php.net to get a copy of this message
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]

« previous php.internals (#97978) next »