Move DummyLinker to own file
authoraddshore <addshorewiki@gmail.com>
Wed, 20 Apr 2016 07:48:48 +0000 (08:48 +0100)
committeraddshore <addshorewiki@gmail.com>
Wed, 20 Apr 2016 07:48:48 +0000 (08:48 +0100)
Change-Id: I1808a6b77af2597b4dd2c9f1e0c8604c2bc8c801

autoload.php
includes/DummyLinker.php [new file with mode: 0644]
includes/Linker.php

index b851e39..582d82b 100644 (file)
@@ -357,7 +357,7 @@ $wgAutoloadLocalClasses = [
        'DoubleRedirectJob' => __DIR__ . '/includes/jobqueue/jobs/DoubleRedirectJob.php',
        'DoubleRedirectsPage' => __DIR__ . '/includes/specials/SpecialDoubleRedirects.php',
        'DoubleReplacer' => __DIR__ . '/includes/libs/replacers/DoubleReplacer.php',
-       'DummyLinker' => __DIR__ . '/includes/Linker.php',
+       'DummyLinker' => __DIR__ . '/includes/DummyLinker.php',
        'DummyTermColorer' => __DIR__ . '/maintenance/term/MWTerm.php',
        'Dump7ZipOutput' => __DIR__ . '/includes/export/Dump7ZipOutput.php',
        'DumpBZip2Output' => __DIR__ . '/includes/export/DumpBZip2Output.php',
diff --git a/includes/DummyLinker.php b/includes/DummyLinker.php
new file mode 100644 (file)
index 0000000..9111784
--- /dev/null
@@ -0,0 +1,20 @@
+<?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 );
+       }
+
+}
index 4ba3a75..a5c85a9 100644 (file)
@@ -2360,20 +2360,3 @@ class Linker {
 
 }
 
-/**
- * @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 );
-       }
-}