X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FServiceWiring.php;h=dad0630edfd75d69bfd40500b23fd532c7167f33;hb=d0142faf253e069473888dc378979b804fb2b07e;hp=0496b67fc762f7532eb428cf6bbe601c735f7a8a;hpb=f2aa8e40f57f97358408b70a5428babd535d6271;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ServiceWiring.php b/includes/ServiceWiring.php index 0496b67fc7..dad0630edf 100644 --- a/includes/ServiceWiring.php +++ b/includes/ServiceWiring.php @@ -439,14 +439,23 @@ return [ 'filesize' => $config->get( 'MaxShellFileSize' ), ]; $cgroup = $config->get( 'ShellCgroup' ); + $restrictionMethod = $config->get( 'ShellRestrictionMethod' ); - $factory = new CommandFactory( $limits, $cgroup ); + $factory = new CommandFactory( $limits, $cgroup, $restrictionMethod ); $factory->setLogger( LoggerFactory::getInstance( 'exec' ) ); $factory->logStderr(); return $factory; }, + 'ExternalStoreFactory' => function ( MediaWikiServices $services ) { + $config = $services->getMainConfig(); + + return new ExternalStoreFactory( + $config->get( 'ExternalStores' ) + ); + }, + /////////////////////////////////////////////////////////////////////////// // NOTE: When adding a service here, don't forget to add a getter function // in the MediaWikiServices class. The convenience getter should just call