24use Psr\Log\LoggerAwareTrait;
25use Psr\Log\NullLogger;
64 if ( PHP_OS ===
'Linux' && $this->
findFirejail() !==
null ) {
65 $this->restrictionMethod =
'firejail';
67 $this->restrictionMethod =
false;
72 $this->setLogger(
new NullLogger() );
76 if ( $this->firejail === null ) {
90 public function logStderr(
bool $yesno =
true ): void {
91 $this->doLogStderr = $yesno;
100 if ( $this->restrictionMethod ===
'firejail' ) {
102 $command->restrict( Shell::RESTRICT_DEFAULT );
106 $command->setLogger( $this->logger );
109 ->limits( $this->limits )
110 ->cgroup( $this->cgroup )
111 ->logStderr( $this->doLogStderr );
if(ini_get('mbstring.func_overload')) if(!defined('MW_ENTRY_POINT'))
Pre-config setup: Before loading LocalSettings.php.
Utility class to find executables in likely places.
static findInDefaultPaths( $names, $versionInfo=false)
Same as locateExecutable(), but checks in getPossibleBinPaths() by default.