public function setBasePath($basePath)
    {
        $this['path.app'] = rtrim($basePath);

        foreach (['config', 'views', 'logs'] as $v) {
            $this['path.' . $v] = realpath(rtrim($basePath) . '/' . $v) . DIRECTORY_SEPARATOR;
        }

        $this['namespace.controller'] = '';

        return $this;
    }
public function setBasePath($basePath)
    {
        $this['path.app'] = rtrim($basePath);

        foreach (['config', 'views', 'logs'] as $v) {
            $this['path.' . $v] = realpath(rtrim($basePath) . '/' . $v) . DIRECTORY_SEPARATOR;
        }

        $this['namespace.controller'] = '';

        return $this;
    }
public function setBasePath ( $ basePath ) { $ this [ 'path.app' ] = rtrim ( $ basePath ) ; foreach ( [ 'config' , 'views' , 'logs' ] as $ v ) { $ this [ 'path.' . $ v ] = realpath ( rtrim ( $ basePath ) . '/' . $ v ) . DIRECTORY_SEPARATOR ; } $ this [ 'namespace.controller' ] = '' ; return $ this ; }
Set the base path for the application.

@param string $basePath

@return $this
Set the base path for the application .