You are here

public static function DebugClassLoader::disable in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/debug/DebugClassLoader.php \Symfony\Component\Debug\DebugClassLoader::disable()

Disables the wrapping.

1 call to DebugClassLoader::disable()
DebugClassLoaderTest::tearDown in vendor/symfony/debug/Tests/DebugClassLoaderTest.php

File

vendor/symfony/debug/DebugClassLoader.php, line 97

Class

DebugClassLoader
Autoloader checking if the class is really defined in the file found.

Namespace

Symfony\Component\Debug

Code

public static function disable() {
  if (!is_array($functions = spl_autoload_functions())) {
    return;
  }
  foreach ($functions as $function) {
    spl_autoload_unregister($function);
  }
  foreach ($functions as $function) {
    if (is_array($function) && $function[0] instanceof self) {
      $function = $function[0]
        ->getClassLoader();
    }
    spl_autoload_register($function);
  }
}