public function dumpModulesFromVendor(array &$modulesList)
    {
        if (!file_exists(APP_ROOT.'/composer.json')) {
            return $modulesList;
        }

        $fileContent = file_get_contents(APP_ROOT . DIRECTORY_SEPARATOR . 'composer.json');
        $json = json_decode($fileContent, true);

        $vendorDir = realpath(APP_ROOT .
            (
                isset($json['config']['vendor-dir'])
                    ? DIRECTORY_SEPARATOR . $json['config']['vendor-dir']
                    : DIRECTORY_SEPARATOR.'vendor'
            )
        );

        foreach ($this->getModuleProviders() as $provider) {
            $providerDir = $vendorDir . DIRECTORY_SEPARATOR . $provider;
            $this->dumpSingleProviderModulesFromVendor($modulesList, $providerDir);
        }

        return $modulesList;
    }