diff --git a/src/Console/MetaCommand.php b/src/Console/MetaCommand.php index 21bc343..071f613 100644 --- a/src/Console/MetaCommand.php +++ b/src/Console/MetaCommand.php @@ -103,6 +103,8 @@ class MetaCommand extends Command } } + $this->unregisterClassAutoloadExceptions(); + $content = $this->view->make('meta', [ 'bindings' => $bindings, 'methods' => $this->methods, @@ -159,4 +161,14 @@ class MetaCommand extends Command array('filename', 'F', InputOption::VALUE_OPTIONAL, 'The path to the meta file', $filename), ); } + + /** + * Remove our custom autoloader that we pushed onto the autoload stack + */ + private function unregisterClassAutoloadExceptions() + { + $autoloadFunctions = spl_autoload_functions(); + $ourAutoloader = array_pop($autoloadFunctions); + spl_autoload_unregister($ourAutoloader); + } }