public function getModuleByName(string $moduleName): \BFW\Module
    {
        if ($this->hasModule($moduleName) === false) {
            throw new Exception(
                'The Module '.$moduleName.' has not been found.',
                $this::ERR_NOT_FOUND
            );
        }

        return $this->modules[$moduleName];
    }
public function getModuleByName(string $moduleName): \BFW\Module
    {
        if ($this->hasModule($moduleName) === false) {
            throw new Exception(
                'The Module '.$moduleName.' has not been found.',
                $this::ERR_NOT_FOUND
            );
        }

        return $this->modules[$moduleName];
    }
public function getModuleByName ( string $ moduleName ) : \ BFW \ Module { if ( $ this -> hasModule ( $ moduleName ) === false ) { throw new Exception ( 'The Module ' . $ moduleName . ' has not been found.' , $ this :: ERR_NOT_FOUND ) ; } return $ this -> modules [ $ moduleName ] ; }
Get the \BFW\Module instance for a module

@param string $moduleName The module's name

@return \BFW\Module

@throws \Exception If the module is not found
Get the \ BFW \ Module instance for a module