MediaWiki master
shell.php File Reference

Modern interactive shell within the MediaWiki engine. More...

Go to the source code of this file.


class  MediaWikiShell
 Interactive shell with completion and global scope. More...


 $maintClass = MediaWikiShell::class
 if (in_array('--no-session', $_SERVER[ 'argv'], true))

Detailed Description

Modern interactive shell within the MediaWiki engine.

Merely wraps around and drop an interactive PHP shell in the global scope.

Copyright © 2017 Antoine Musso Copyright © 2017 Gergő Tisza Copyright © 2017 Justin Hileman Copyright © 2017 Wikimedia Foundation Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Antoine Musso
Justin Hileman
Gergő Tisza

Definition in file shell.php.

Variable Documentation

◆ $maintClass

$maintClass = MediaWikiShell::class

Definition at line 162 of file shell.php.

◆ if

if(in_array('--no-session', $_SERVER['argv'], true)) ( in_array('--no-session', $_SERVER[ 'argv'], true) )

Definition at line 47 of file shell.php.