src/Resolver.php
public function registerModulePath($moduleName, $path, $addPrefix = true)
    {
        $normalized = static::normalizePath($path) . PHP_DS;
        if ($addPrefix) {
            $normalized .= static::DEFAULT_PREFIX . PHP_DS;
        }
        $this->modulesMap[static::normalizeModule($moduleName)] = $normalized;

        return $this;
    }
public function registerModulePath($moduleName, $path, $addPrefix = true)
    {
        $normalized = static::normalizePath($path) . PHP_DS;
        if ($addPrefix) {
            $normalized .= static::DEFAULT_PREFIX . PHP_DS;
        }
        $this->modulesMap[static::normalizeModule($moduleName)] = $normalized;

        return $this;
    }
public function registerModulePath ( $ moduleName , $ path , $ addPrefix = true ) { $ normalized = static :: normalizePath ( $ path ) . PHP_DS ; if ( $ addPrefix ) { $ normalized .= static :: DEFAULT_PREFIX . PHP_DS ; } $ this -> modulesMap [ static :: normalizeModule ( $ moduleName ) ] = $ normalized ; return $ this ; }
Registers module path.

@param string $moduleName The module name
@param string $path       The path to module directory
@param bool   $addPrefix  Optional; true by default. To add a prefix to
the directory path

@return self
Registers module path .