9use InvalidArgumentException;
10use Psr\Log\LoggerAwareInterface;
11use Psr\Log\LoggerInterface;
12use Psr\Log\NullLogger;
44 if ( isset(
$params[
'domain'] ) ) {
45 $this->dbDomain =
$params[
'domain'];
46 $this->isDbDomainExplicit = empty(
$params[
'isDomainImplicit'] );
48 throw new InvalidArgumentException(
'Missing DB "domain" parameter.' );
51 $this->logger =
$params[
'logger'] ??
new NullLogger();
75 foreach ( $urls as
$url ) {
76 $data = $this->fetchFromURL(
$url );
78 if ( $data !==
false ) {
79 $retval[
$url] = $data;
94 abstract public function store( $location, $data );
109class_alias( ExternalStoreMedium::class,
'ExternalStoreMedium' );