diff options
author | daniel <dkinzler@wikimedia.org> | 2022-03-29 17:48:30 +0200 |
---|---|---|
committer | daniel <dkinzler@wikimedia.org> | 2022-03-31 16:36:34 +0200 |
commit | 14978e264c741137844fe749008042e5bd2faefc (patch) | |
tree | 12ab63ce0c84771648313e36f1399d5834d5bf75 /includes/Settings/Config | |
parent | b1d6c07e7d0614772c040953261e371b13450842 (diff) | |
download | mediawikicore-14978e264c741137844fe749008042e5bd2faefc.tar.gz mediawikicore-14978e264c741137844fe749008042e5bd2faefc.zip |
Benchmark script for settings loading.
Change-Id: I323a3469c574b55ad78abb35863f30b1007f3135
Diffstat (limited to 'includes/Settings/Config')
-rw-r--r-- | includes/Settings/Config/NullIniSink.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/includes/Settings/Config/NullIniSink.php b/includes/Settings/Config/NullIniSink.php new file mode 100644 index 000000000000..998f4b674a57 --- /dev/null +++ b/includes/Settings/Config/NullIniSink.php @@ -0,0 +1,21 @@ +<?php + +namespace MediaWiki\Settings\Config; + +/** + * Null implementation of PhpIniSink, useful for testing and benchmarking. + * + * @unstable + */ +class NullIniSink extends PhpIniSink { + + /** + * @param string $option + * @param string $value + * @return void + */ + public function set( string $option, string $value ): void { + // noop + } + +} |