Sha256: fe716037a9f85e81fb4a02dd2db7274154421179f8f74345322ace6799adb337
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 Bytes
Contents
module Composer module Package module Loader # Loads a package from the project root package # @author Ioannis Kappas <ikappas@devworks.gr> class ProjectRootPackageLoader def initialize(loader) @loader = loader end # Load a project ref # Param: string|JsonFile json A filename, json string or JsonFile instance to load the package from # Returns: Composer::Package::Package def load(project, ref) config = Composer::Json::JsonFile.parse_json( project.repository.blob_at(ref.target, 'composer.json') ) @loader.load(config) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
php-composer-0.3.0 | lib/composer/package/loader/project_root_package_loader.rb |
php-composer-0.2.0 | lib/composer/package/loader/project_root_package_loader.rb |