protected $dbDomain;
/** @var bool Whether this was factoried with an explicit DB domain */
protected $isDbDomainExplicit;
- /** @var string[] Writable locations */
- protected $writableLocations = [];
/** @var LoggerInterface */
protected $logger;
/**
* @param array $params Usage context options for this instance:
* - domain: the DB domain ID of the wiki the content is for [required]
- * - writableLocations: locations that are writable [required]
* - logger: LoggerInterface instance [optional]
* - isDomainImplicit: whether this was factoried without an explicit DB domain [optional]
*/
}
$this->logger = $params['logger'] ?? new NullLogger();
- $this->writableLocations = $params['writableLocations'] ?? [];
}
public function setLogger( LoggerInterface $logger ) {
* @since 1.31
*/
public function isReadOnly( $location ) {
- return !in_array( $location, $this->writableLocations, true );
+ return false;
}
}