private function obtainPackage($name)
    {
        $package = $this->getPackageFromConfig($name);

        if ($package == null) {
            $this->showPackageNotFoundError($name);

            return -1;
        }

        return $package;
    }
private function obtainPackage($name)
    {
        $package = $this->getPackageFromConfig($name);

        if ($package == null) {
            $this->showPackageNotFoundError($name);

            return -1;
        }

        return $package;
    }
private function obtainPackage ( $ name ) { $ package = $ this -> getPackageFromConfig ( $ name ) ; if ( $ package == null ) { $ this -> showPackageNotFoundError ( $ name ) ; return - 1 ; } return $ package ; }
Obtain package.

@param $name

@return array|int
Obtain package .