Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/FileImporter/src/Services/SourceSiteLocator.php
Ðазад
<?php namespace FileImporter\Services; use FileImporter\Data\SourceUrl; use FileImporter\Exceptions\SourceUrlException; /** * SourceSiteLocator for getting a SourceSite service which can handle a given URL. * * @license GPL-2.0-or-later * @author Addshore */ class SourceSiteLocator { /** @var SourceSite[] */ private array $sourceSites; /** * @param SourceSite[] $sourceSites */ public function __construct( array $sourceSites ) { $this->sourceSites = $sourceSites; } /** * @throws SourceUrlException when the URL doesn't match a known site */ public function getSourceSite( SourceUrl $sourceUrl ): SourceSite { foreach ( $this->sourceSites as $site ) { if ( $site->isSourceSiteFor( $sourceUrl ) ) { return $site; } } throw new SourceUrlException(); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка