Page MenuHomeWickedGov Phorge

__bootstrap.php
No OneTemporary

Size
712 B
Referenced Files
None
Subscribers
None

__bootstrap.php

<?php
declare( strict_types = 1 );
/*
* Boilerpate code for bootstrapping maintenance scripts.
*
* This code must be in global scope. Callers must define $class;
*/
$env = getenv( 'MW_INSTALL_PATH' );
$IP = $env !== false ? $env : __DIR__ . '/../../..';
require_once "$IP/maintenance/Maintenance.php";
// Manually load required classes, as autoloader is not available until RUN_MAINTENANCE_IF_MAIN
require_once __DIR__ . '/../src/Utilities/BaseMaintenanceScript.php';
// $maintClass must be after Maintenance.php
$maintClass = $class;
$file = strtr( $maintClass, [ 'MediaWiki\\Extension\\Translate\\' => '', '\\' => '/' ] );
require_once __DIR__ . "/../src/$file.php";
require_once RUN_MAINTENANCE_IF_MAIN;

File Metadata

Mime Type
text/x-php
Expires
Mon, Nov 23, 01:52 (2 d, 18 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c2/36/6b514fb3212bad629aa3e4d275f6
Default Alt Text
__bootstrap.php (712 B)

Event Timeline