public function unregister()
    {
        foreach (array_reverse($this->previousLoaders) as $previousLoader) {
            spl_autoload_register($previousLoader, true);
        }

        spl_autoload_unregister(array($this, 'loadClass'));
    }