diff --git a/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php b/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php index 83220c98b64a..52bf3e974ddb 100644 --- a/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php +++ b/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php @@ -34,8 +34,8 @@ static public function enable() foreach ($functions as $function) { if (is_array($function) && $function[0] instanceof UniversalClassLoader) { $loader = new static(); - $loader->registerNamespaceFallback($function[0]->getNamespaceFallback()); - $loader->registerPrefixFallback($function[0]->getPrefixFallback()); + $loader->registerNamespaceFallbacks($function[0]->getNamespaceFallbacks()); + $loader->registerPrefixFallbacks($function[0]->getPrefixFallbacks()); $loader->registerNamespaces($function[0]->getNamespaces()); $loader->registerPrefixes($function[0]->getPrefixes()); diff --git a/tests/Symfony/Tests/Component/ClassLoader/ApcUniversalClassLoaderTest.php b/tests/Symfony/Tests/Component/ClassLoader/ApcUniversalClassLoaderTest.php index c8b6856e9fa9..37b231a5cb30 100644 --- a/tests/Symfony/Tests/Component/ClassLoader/ApcUniversalClassLoaderTest.php +++ b/tests/Symfony/Tests/Component/ClassLoader/ApcUniversalClassLoaderTest.php @@ -73,8 +73,8 @@ public function testLoadClassFromFallback($className, $testClassName, $message) $loader = new ApcUniversalClassLoader('test.prefix.fallback'); $loader->registerNamespace('Apc\Namespaced', __DIR__.DIRECTORY_SEPARATOR.'Fixtures'); $loader->registerPrefix('Apc_Pearlike_', __DIR__.DIRECTORY_SEPARATOR.'Fixtures'); - $loader->registerNamespaceFallback(__DIR__.DIRECTORY_SEPARATOR.'Fixtures/Apc/fallback'); - $loader->registerPrefixFallback(__DIR__.DIRECTORY_SEPARATOR.'Fixtures/Apc/fallback'); + $loader->registerNamespaceFallbacks(array(__DIR__.DIRECTORY_SEPARATOR.'Fixtures/Apc/fallback')); + $loader->registerPrefixFallbacks(array(__DIR__.DIRECTORY_SEPARATOR.'Fixtures/Apc/fallback')); $loader->loadClass($testClassName); $this->assertTrue(class_exists($className), $message); }