Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/maintenance/validateRegistrationFile.php
Ðазад
<?php use MediaWiki\Registration\ExtensionJsonValidationError; use MediaWiki\Registration\ExtensionJsonValidator; // @codeCoverageIgnoreStart require_once __DIR__ . '/Maintenance.php'; // @codeCoverageIgnoreEnd class ValidateRegistrationFile extends Maintenance { public function __construct() { parent::__construct(); $this->addArg( 'path', 'Path or glob pattern to extension.json/skin.json file.', true ); } public function execute() { $validator = new ExtensionJsonValidator( function ( $msg ) { $this->fatalError( $msg ); } ); $validator->checkDependencies(); $paths = glob( $this->getArg( 0 ) ); foreach ( $paths as $path ) { try { $validator->validate( $path ); $this->output( "$path validates against the schema!\n" ); } catch ( ExtensionJsonValidationError $e ) { $this->fatalError( $e->getMessage() ); } } } } // @codeCoverageIgnoreStart $maintClass = ValidateRegistrationFile::class; require_once RUN_MAINTENANCE_IF_MAIN; // @codeCoverageIgnoreEnd
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка