static function ( MediaWikiServices $services ) { return $services->getService( 'ConfigFactory' ) ->makeConfig( 'cookiewarning' ); }, 'GeoLocation' => static function ( MediaWikiServices $services ) { $geoIPServiceURL = $services ->getService( 'CookieWarning.Config' ) ->get( 'CookieWarningGeoIPServiceURL' ); if ( !is_string( $geoIPServiceURL ) || !$geoIPServiceURL ) { return new NoopGeoLocation(); } return new HttpGeoLocation( $geoIPServiceURL ); }, 'CookieWarning.Decisions' => static function ( MediaWikiServices $services ) { return new Decisions( $services->getService( 'CookieWarning.Config' ), $services->getService( 'GeoLocation' ), $services->getMainWANObjectCache(), $services->getUserOptionsLookup() ); }, ];