diff --git "a/include/class-mw\\StaticSite.php" "b/include/class-mw\\StaticSite.php" index 66d46b1..6df49f1 100644 --- "a/include/class-mw\\StaticSite.php" +++ "b/include/class-mw\\StaticSite.php" @@ -1,65 +1,56 @@ . # MediaWiki namespace mw; // traits can't be autoloadded require 'class-generic\Singleton.php'; /** * A site that can be instantiated once using getInstance() */ class StaticSite extends Site { use \generic\Singleton; /** * @override */ protected static function create() { $site = static::createFromAPIURL( static::getApiURL() ); $site->setUID( static::UID ); // Set default namespaces foreach( Ns::defaultCanonicalNames() as $ns_id => $ns ) { $site->setNamespace( new Ns( $ns_id, $ns ) ); } return $site; } /** * To be overloaded. * * @return string */ protected static function getApiURL() { return static::API_URL; } - /** - * To be overloaded. - * - * @param $site mw\Site - */ - protected static function onCreate( $site ) { - // Please override - } - }