PackageRepositoryInterface
interface PackageRepositoryInterface (View source)
Methods
Get a list of remote packages that are available for this connection
Download a remote package and make it available for install
Get the existing connection if one is set
Attempt to connect to the package repository
Registers a new canonical URL with an existing marketplace connection.
Determine if a given connection is valid for the current site
Sends one or more updated fields to the marketplace backend for optional stage in the remote site object.
Details
        
                            RemotePackage|null
    getPackage(ConnectionInterface $connection, string $packageId)
        
    
    Load a package by its remote ID
        
                            array
    getPackages(ConnectionInterface $connection, bool $latestOnly = false, bool $compatibleOnly = false)
        
    
    Get a list of remote packages that are available for this connection
        
                            void
    download(ConnectionInterface $connection, RemotePackage $package, bool $overwrite = false)
        
    
    Download a remote package and make it available for install
        
                            ConnectionInterface|null
    getConnection()
        
    
    Get the existing connection if one is set
        
                            ConnectionInterface
    connect()
        
    
    Attempt to connect to the package repository
        
                            void
    registerUrl(ConnectionInterface $connection)
        
    
    Registers a new canonical URL with an existing marketplace connection.
        
                            bool|ValidateResult
    validate(ConnectionInterface $connection, bool $returnFullObject = false)
        
    
    Determine if a given connection is valid for the current site
        
                            void
    update(ConnectionInterface $connection, array $updatedFields)
        
    
    Sends one or more updated fields to the marketplace backend for optional stage in the remote site object.