lib/dependabot/composer/file_parser.rb in dependabot-composer-0.283.0 vs lib/dependabot/composer/file_parser.rb in dependabot-composer-0.284.0

- old
+ new

@@ -33,15 +33,26 @@ dependency_set += manifest_dependencies dependency_set += lockfile_dependencies dependency_set.dependencies end - sig { returns(PackageManagerBase) } - def package_manager - PackageManager.new(composer_version) + sig { returns(Ecosystem) } + def ecosystem + @ecosystem ||= T.let( + Ecosystem.new( + name: ECOSYSTEM, + package_manager: package_manager + ), + T.nilable(Ecosystem) + ) end private + + sig { returns(Ecosystem::VersionManager) } + def package_manager + PackageManager.new(composer_version) + end sig { returns(DependencySet) } def manifest_dependencies # rubocop:disable Metrics/PerceivedComplexity dependencies = T.let(DependencySet.new, DependencySet)