PackageRepository
final class PackageRepository implements PackageRepositoryInterface (View source)
Properties
| private Client | $client | ||
| private Serializer | $serializer | ||
| private Repository | $config | ||
| private Repository | $databaseConfig | ||
| private Service | $siteService | ||
| private string | $baseUri | ||
| private array<string,string> | $paths | 
Methods
No description
Get a list of remote packages that are available for this connection
Download a remote package and make it available for install
No description
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.
No description
No description
No description
Details
        
                            
    __construct(Client $client, Serializer $serializer, Repository $config, Repository $databaseConfig, Service $siteService, string $baseUri, array $paths)
        
    
    No description
        
                            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
        
                    protected        
    rimraf(string $handle)
        
    
    No description
        
                            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)
        
    
    No description
        
                            void
    update(ConnectionInterface $connection, array $updatedFields)
        
    
    No description
        
                    protected        RequestInterface
    authenticate(RequestInterface $request, ConnectionInterface $connection, string $algo = 'sha256')
        
    
    No description
        
                    protected        RequestInterface
    requestFor(string $method, string $pathKey, ...$interpolate)
        
    
    No description
        
                        private    string
    getUrl(Site $site)
        
    
    No description
        
                    protected        RequestInterface
    addQuery(RequestInterface $request)
        
    
    No description