public function getPackages()
    {
        $filename = $this->vendorPath . '/composer/installed.json';
        if (!file_exists($filename)) {
            throw new Exception($filename . ' not exists!');
        }
        $packages = [];
        foreach (json_decode(file_get_contents($filename), true) as $package) {
            if ($package['type'] === 'teamelf-extension') {
                $packages[] = $package;
            }
        }
        return $packages;
    }
public function getPackages()
    {
        $filename = $this->vendorPath . '/composer/installed.json';
        if (!file_exists($filename)) {
            throw new Exception($filename . ' not exists!');
        }
        $packages = [];
        foreach (json_decode(file_get_contents($filename), true) as $package) {
            if ($package['type'] === 'teamelf-extension') {
                $packages[] = $package;
            }
        }
        return $packages;
    }
public function getPackages ( ) { $ filename = $ this -> vendorPath . '/composer/installed.json' ; if ( ! file_exists ( $ filename ) ) { throw new Exception ( $ filename . ' not exists!' ) ; } $ packages = [ ] ; foreach ( json_decode ( file_get_contents ( $ filename ) , true ) as $ package ) { if ( $ package [ 'type' ] === 'teamelf-extension' ) { $ packages [ ] = $ package ; } } return $ packages ; }
get install packages

@return array
@throws Exception
get install packages