src/Core/Core.php
protected function registerModule($name, \OtherCode\FController\Modules\BaseModule $module)
    {
        $name = strtolower($name);

        if (!array_key_exists($name, $this->modules)) {
            $module->connect($this->services, $this->storage, $this->messages);
            $this->modules[$name] = $module;
            return true;
        }
        return false;

    }
protected function registerModule($name, \OtherCode\FController\Modules\BaseModule $module)
    {
        $name = strtolower($name);

        if (!array_key_exists($name, $this->modules)) {
            $module->connect($this->services, $this->storage, $this->messages);
            $this->modules[$name] = $module;
            return true;
        }
        return false;

    }
protected function registerModule ( $ name , \ OtherCode \ FController \ Modules \ BaseModule $ module ) { $ name = strtolower ( $ name ) ; if ( ! array_key_exists ( $ name , $ this -> modules ) ) { $ module -> connect ( $ this -> services , $ this -> storage , $ this -> messages ) ; $ this -> modules [ $ name ] = $ module ; return true ; } return false ; }
Register and instantiate a new module
@param string $name
@param \OtherCode\FController\Modules\BaseModule $module
@return boolean
Register and instantiate a new module