Move DummyLinker to own file
[lhc/web/wiklou.git] / includes / DummyLinker.php
1 <?php
2
3 /**
4 * @since 1.18
5 */
6 class DummyLinker {
7
8 /**
9 * Use PHP's magic __call handler to transform instance calls to a dummy instance
10 * into static calls to the new Linker for backwards compatibility.
11 *
12 * @param string $fname Name of called method
13 * @param array $args Arguments to the method
14 * @return mixed
15 */
16 public function __call( $fname, $args ) {
17 return call_user_func_array( [ 'Linker', $fname ], $args );
18 }
19
20 }