src/FrameworkHandler.php
public function getPackages(string $name = null): array
    {
        if (isset($this->packages[$name])) {
            return $this->packages[$name];
        }

        return $this->packages;
    }
public function getPackages(string $name = null): array
    {
        if (isset($this->packages[$name])) {
            return $this->packages[$name];
        }

        return $this->packages;
    }
public function getPackages ( string $ name = null ) : array { if ( isset ( $ this -> packages [ $ name ] ) ) { return $ this -> packages [ $ name ] ; } return $ this -> packages ; }
Returns all the packages

@param string|null $name Name of package

@return array
Returns all the packages