X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Futils%2FAutoloadGenerator.php;h=319b5d4854c6cd0c96689c71397e81b4eb301a33;hb=2118d5cb99042be136b0517cb8ac7ab8344a97e1;hp=395ce379f896d4c32a055c3f99ff64522a21f570;hpb=99dbf4e1d4d7f18e02935bdb8cd3be4413ffe729;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/AutoloadGenerator.php b/includes/utils/AutoloadGenerator.php index 395ce379f8..319b5d4854 100644 --- a/includes/utils/AutoloadGenerator.php +++ b/includes/utils/AutoloadGenerator.php @@ -160,6 +160,7 @@ class AutoloadGenerator { * * @param {string} $commandName Command name to include in comment * @param {string} $filename of PHP file to put autoload information in. + * @return string */ protected function generatePHPAutoload( $commandName, $filename ) { // No existing JSON file found; update/generate PHP file @@ -290,6 +291,10 @@ EOD; foreach ( glob( $this->basepath . '/*.php' ) as $file ) { $this->readFile( $file ); } + + // Legacy aliases + $this->forceClassPath( 'DatabaseBase', + $this->basepath . '/includes/libs/rdbms/database/Database.php' ); } }