public function getRepository($repositoryName)
    {
        $repositoryName = (string)$repositoryName;
        if(!isset($this->config['repositories'][$repositoryName]['class'])) return false;
        $className = $this->config['repositories'][$repositoryName]['class'];
        if (!class_exists($className)) {
            return false;
        }
        $connectionName = isset($this->config['repositories'][$repositoryName]['connection'])?$this->config['repositories'][$repositoryName]['connection']:null;
        return new $className($connectionName);
    }
public function getRepository($repositoryName)
    {
        $repositoryName = (string)$repositoryName;
        if(!isset($this->config['repositories'][$repositoryName]['class'])) return false;
        $className = $this->config['repositories'][$repositoryName]['class'];
        if (!class_exists($className)) {
            return false;
        }
        $connectionName = isset($this->config['repositories'][$repositoryName]['connection'])?$this->config['repositories'][$repositoryName]['connection']:null;
        return new $className($connectionName);
    }
public function getRepository ( $ repositoryName ) { $ repositoryName = ( string ) $ repositoryName ; if ( ! isset ( $ this -> config [ 'repositories' ] [ $ repositoryName ] [ 'class' ] ) ) return false ; $ className = $ this -> config [ 'repositories' ] [ $ repositoryName ] [ 'class' ] ; if ( ! class_exists ( $ className ) ) { return false ; } $ connectionName = isset ( $ this -> config [ 'repositories' ] [ $ repositoryName ] [ 'connection' ] ) ? $ this -> config [ 'repositories' ] [ $ repositoryName ] [ 'connection' ] : null ; return new $ className ( $ connectionName ) ; }
Return repository object

@param string $repositoryName
@return mixed
Return repository object