\Heise\Shariff\BackendBackendManager

Class BackendManager.

Summary

Methods
Properties
Constants
__construct()
setLogger()
get()
No public properties found
No constants found
No protected methods found
$baseCacheKey
$cache
$client
$domains
$services
$logger
N/A
isValidDomain()
No private properties found
N/A

Properties

$baseCacheKey

$baseCacheKey :string

Type

string

$client

$client :\GuzzleHttp\ClientInterface

Type

\GuzzleHttp\ClientInterface

$domains

$domains :array

Type

array

$logger

$logger :\Psr\Log\LoggerInterface

Type

\Psr\Log\LoggerInterface

Methods

__construct()

__construct(string  $baseCacheKey,\Heise\Shariff\CacheInterface  $cache,\GuzzleHttp\ClientInterface  $client,array|string  $domains,array<mixed,\Heise\Shariff\Backend\ServiceInterface>  $services)

Parameters

string $baseCacheKey
\Heise\Shariff\CacheInterface $cache
\GuzzleHttp\ClientInterface $client
array|string $domains
array<mixed,\Heise\Shariff\Backend\ServiceInterface> $services

setLogger()

setLogger(\Psr\Log\LoggerInterface  $logger = null)

Parameters

\Psr\Log\LoggerInterface $logger

get()

get(string  $url): array|mixed|null

Parameters

string $url

Returns

array|mixed|null

isValidDomain()

isValidDomain(string  $url): boolean

Parameters

string $url

Returns

boolean