Skip to content

Instantly share code, notes, and snippets.

@develpr
Created May 16, 2014 22:23
Show Gist options
  • Save develpr/a2cf1fa560f51537ae9b to your computer and use it in GitHub Desktop.
Save develpr/a2cf1fa560f51537ae9b to your computer and use it in GitHub Desktop.
array (size=2)
0 =>
array (size=2)
0 =>
object(Varien_Autoload)[1]
protected '_isIncludePathDefined' => boolean false
protected '_collectClasses' => boolean false
protected '_collectPath' => null
protected '_arrLoadedClasses' =>
array (size=0)
...
1 => string 'autoload' (length=8)
1 =>
array (size=2)
0 =>
object(Symfony\Component\ClassLoader\UniversalClassLoader)[76]
private 'namespaces' =>
array (size=6)
...
private 'prefixes' =>
array (size=0)
...
private 'namespaceFallbacks' =>
array (size=0)
...
private 'prefixFallbacks' =>
array (size=0)
...
private 'useIncludePath' => boolean false
1 => string 'loadClass' (length=9)
@rgranadino
Copy link

$autoloadFuncs = spl_autoload_functions();
$awsCallback = false;
foreach ($autoloadFuncs as $callback) {
if (is_array($callback) && get_class($callback[0]) == 'Symfony\Component\ClassLoader\UniversalClassLoader') {
$awsCallback = $callback;
break;
}
}
if ($awsCallback) {
spl_autoload_unregister($awsCallback);
spl_autoload_register($awsCallback, null, true);
}

@develpr
Copy link
Author

develpr commented May 16, 2014

array (size=2)
0 =>
array (size=2)
0 =>
object(Symfony\Component\ClassLoader\UniversalClassLoader)[76]
private 'namespaces' =>
array (size=6)
...
private 'prefixes' =>
array (size=0)
...
private 'namespaceFallbacks' =>
array (size=0)
...
private 'prefixFallbacks' =>
array (size=0)
...
private 'useIncludePath' => boolean false
1 => string 'loadClass' (length=9)
1 =>
array (size=2)
0 =>
object(Varien_Autoload)[1]
protected '_isIncludePathDefined' => boolean false
protected '_collectClasses' => boolean false
protected '_collectPath' => null
protected '_arrLoadedClasses' =>
array (size=0)
...
1 => string 'autoload' (length=8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment