• Full name: \App\Infrastructure\Persistence\Repository\ExtensionRepository
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Properties

cache

private \Psr\SimpleCache\CacheInterface $cache

composerLockPath

private string $composerLockPath

registryBaseUrl

private string $registryBaseUrl

ttl

private int $ttl

Methods

__construct

public __construct(string $composerLockPath, string $registryBaseUrl = 'https://api.devflowcmf.com/v1', int $ttl = 21600): mixed

Parameters:

Parameter Type Description
$composerLockPath string
$registryBaseUrl string
$ttl int

Throws:


plugins

public plugins(): array

Throws:


themes

public themes(): array

Throws:


forInstaller

public forInstaller(string $kind): array

Parameters:

Parameter Type Description
$kind string

Throws:


available

private available(string $kind): array

Parameters:

Parameter Type Description
$kind string

Throws:


installedPackages

private installedPackages(): array

Throws:


clearCache

public clearCache(): void

Throws:


fetchJson

private fetchJson(string $url): string

Parameters:

Parameter Type Description
$url string