src/Module/ModuleManager.php
public function unload($module)
    {
        $module = Inflector::camelize($module);

        if (!isset($this->loadedModules[$module])) {
            //Return the message AlreadyUnloaded.
            return 'AU';
        }

        //Remove this module, also calling the __destruct method of it.
        $object = $this->loadedModules[$module]['object'];
        unset($object);
        unset($this->loadedModules[$module]);

        //Return the message Unloaded.
        return 'U';
    }
public function unload($module)
    {
        $module = Inflector::camelize($module);

        if (!isset($this->loadedModules[$module])) {
            //Return the message AlreadyUnloaded.
            return 'AU';
        }

        //Remove this module, also calling the __destruct method of it.
        $object = $this->loadedModules[$module]['object'];
        unset($object);
        unset($this->loadedModules[$module]);

        //Return the message Unloaded.
        return 'U';
    }
Unload a module from the Framework.

@param string $module Module to unload.

@return string