3 use MediaWiki\Config\ServiceOptions
;
6 * Helper for TestAllServiceOptionsUsed.
8 class LoggedServiceOptions
extends ServiceOptions
{
13 * @param array &$accessLog Pass self::$serviceOptionsAccessLog from the class implementing
14 * TestAllServiceOptionsUsed.
15 * @param string[] $keys
16 * @param mixed ...$args Forwarded to parent as-is.
18 public function __construct( array &$accessLog, array $keys, ...$args ) {
19 $this->accessLog
= &$accessLog;
21 $accessLog = [ $keys, [] ];
24 parent
::__construct( $keys, ...$args );
31 public function get( $key ) {
32 $this->accessLog
[1][$key] = true;
34 return parent
::get( $key );