wiki.techinc.nl/includes/DummyLinker.php
addshore b215e34de8 Move DummyLinker to own file
Change-Id: I1808a6b77af2597b4dd2c9f1e0c8604c2bc8c801
2016-04-20 08:48:48 +01:00

20 lines
440 B
PHP

<?php
/**
* @since 1.18
*/
class DummyLinker {
/**
* Use PHP's magic __call handler to transform instance calls to a dummy instance
* into static calls to the new Linker for backwards compatibility.
*
* @param string $fname Name of called method
* @param array $args Arguments to the method
* @return mixed
*/
public function __call( $fname, $args ) {
return call_user_func_array( [ 'Linker', $fname ], $args );
}
}