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;
    }