Hello,
I have a question with the UniversalClassLoader.php that ships with Symfony 2.
Their register() looks like:
public function register($prepend = false)
{
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
}
As per PHP docs, the first argument in the call is the function to call, the custom loader, instead of the __autoload that ships with PHP.
In the code above what does "array($this, 'loadClass')" refer to...? I know what $this is and what loadClass is, but i am not clear on what they mean there...
Anyone know why they include the object itself in there..??
Thanks.