src/mako/application/Application.php
public function getPackage(string $package): Package
	{
		if(!isset($this->packages[$package]))
		{
			throw new RuntimeException(vsprintf('Unknown package [ %s ].', [$package]));
		}

		return $this->packages[$package];
	}
public function getPackage(string $package): Package
	{
		if(!isset($this->packages[$package]))
		{
			throw new RuntimeException(vsprintf('Unknown package [ %s ].', [$package]));
		}

		return $this->packages[$package];
	}
public function getPackage ( string $ package ) : Package { if ( ! isset ( $ this -> packages [ $ package ] ) ) { throw new RuntimeException ( vsprintf ( 'Unknown package [ %s ].' , [ $ package ] ) ) ; } return $ this -> packages [ $ package ] ; }
Returns a package by its name.

@param  string                    $package Package name
@throws \RuntimeException
@return \mako\application\Package
Returns a package by its name .