diff --git "a/class-mw\\StaticSite.php" "b/class-mw\\StaticSite.php" index b3c6fd9..70e8d83 100644 --- "a/class-mw\\StaticSite.php" +++ "b/class-mw\\StaticSite.php" @@ -1,68 +1,68 @@ . # MediaWiki namespace mw; class StaticSite extends \generic\Singleton { /** * Sort of unique identifier * * @var string */ const UID = 'none'; /** * @override \generic\Singleton::create() */ protected static function create() { $site = new Site( static::getApiURL() ); // Set the UID $site->setUID( static::UID ); // Set default namespaces foreach( Ns::defaultCanonicalNames() as $ns_id => $ns ) { $site->setNamespace( new Ns( $ns_id, $ns ) ); } // Callback static::onCreate( $site ); return $site; } /** * To be overloaded. * * @return string */ protected static function getApiURL() { throw new \Exception('must overload'); } /** * To be overloaded. * * @param $site mw\Site */ - protected static function onCreate( & $site ) { + protected static function onCreate( $site ) { // Please override } }