mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning
synced 2024-11-27 15:40:16 +00:00
build: Updating composer dependencies
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0 * php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0 Change-Id: I11808cfb01de67037062e03f0db4268418e65b49
This commit is contained in:
parent
1f8b46ea35
commit
66ba87913d
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"mediawiki/mediawiki-codesniffer": "35.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "36.0.0",
|
||||
"mediawiki/minus-x": "1.1.1",
|
||||
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
||||
"php-parallel-lint/php-parallel-lint": "1.2.0"
|
||||
"php-parallel-lint/php-parallel-lint": "1.3.0"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": [
|
||||
|
|
|
@ -6,11 +6,11 @@ use CookieWarning\NoopGeoLocation;
|
|||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
return [
|
||||
'CookieWarning.Config' => function ( MediaWikiServices $services ) {
|
||||
'CookieWarning.Config' => static function ( MediaWikiServices $services ) {
|
||||
return $services->getService( 'ConfigFactory' )
|
||||
->makeConfig( 'cookiewarning' );
|
||||
},
|
||||
'GeoLocation' => function ( MediaWikiServices $services ) {
|
||||
'GeoLocation' => static function ( MediaWikiServices $services ) {
|
||||
$geoIPServiceURL = $services
|
||||
->getService( 'CookieWarning.Config' )
|
||||
->get( 'CookieWarningGeoIPServiceURL' );
|
||||
|
@ -20,7 +20,7 @@ return [
|
|||
}
|
||||
return new HttpGeoLocation( $geoIPServiceURL );
|
||||
},
|
||||
'CookieWarning.Decisions' => function ( MediaWikiServices $services ) {
|
||||
'CookieWarning.Decisions' => static function ( MediaWikiServices $services ) {
|
||||
return new Decisions(
|
||||
$services->getService( 'CookieWarning.Config' ),
|
||||
$services->getService( 'GeoLocation' ),
|
||||
|
|
Loading…
Reference in a new issue