Manual:findClasses.php
Appearance
MediaWiki version: | ≥ 1.37 |
MediaWiki file: findClasses.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | FindClasses |
Details
[edit]findClasses.php is a maintenance script to finds the files containing classes via the autoloader.
Options/Arguments
[edit]This script does not take any options or arguments.
Usage
[edit]php maintenance/run.php findClasses
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.Finding a single class
[edit]Terminal
$ echo "SpecialPage" | php maintenance/run.php findClasses /var/www/html/includes/specialpage/SpecialPage.php
Finding multiple classes through file
[edit]classes.txt
HTMLForm
SpecialPage
Html
Xml
Terminal
$ php maintenance/run.php findClasses < classes.txt /var/www/html/includes/htmlform/HTMLForm.php /var/www/html/includes/specialpage/SpecialPage.php /var/www/html/includes/Html.php /var/www/html/includes/xml/Xml.php