24use Psr\Log\LoggerAwareTrait;
25use Psr\Log\NullLogger;
66 if ( PHP_OS ===
'Linux' && $this->
findFirejail() !==
false ) {
67 $this->restrictionMethod =
'firejail';
69 $this->restrictionMethod =
false;
74 $this->setLogger(
new NullLogger() );
78 if ( $this->firejail ===
null ) {
92 $this->doLogStderr = $yesno;
101 if ( $this->restrictionMethod ===
'firejail' ) {
107 $command->setLogger( $this->logger );
110 ->limits( $this->limits )
111 ->cgroup( $this->cgroup )
112 ->logStderr( $this->doLogStderr );
Utility class to find executables in likely places.
static findInDefaultPaths( $names, $versionInfo=false)
Same as locateExecutable(), but checks in getPossibleBinPaths() by default.