Skip to content

Commit

Permalink
Remove deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Mar 2, 2019
1 parent 4c0498d commit 386307e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
7 changes: 0 additions & 7 deletions src/MappingServices.php
Expand Up @@ -75,13 +75,6 @@ public function getServiceOrDefault( string $name ): MappingService {
return $this->nameToServiceMap[$this->defaultService];
}

/**
* @deprecated
*/
public static function getServiceInstance( string $serviceIdentifier ): MappingService {
return MapsFactory::globalInstance()->getMappingServices()->nameToServiceMap[$serviceIdentifier];
}

public function getAllNames(): array {
return array_keys( $this->nameToServiceMap );
}
Expand Down
3 changes: 2 additions & 1 deletion src/MediaWiki/ParserHooks/MapsDocFunction.php
Expand Up @@ -3,6 +3,7 @@
namespace Maps\MediaWiki\ParserHooks;

use Maps\MappingServices;
use Maps\MapsFactory;
use ParamProcessor\ParamDefinition;
use ParserHook;

Expand Down Expand Up @@ -47,7 +48,7 @@ private function getServiceParameters( $service ) {
'message' => 'maps-par-zoom',
]
],
MappingServices::getServiceInstance( $service )->getParameterInfo()
MapsFactory::globalInstance()->getMappingServices()->getService( $service )->getParameterInfo()
);
}

Expand Down
2 changes: 0 additions & 2 deletions src/SemanticMaps.php
Expand Up @@ -58,8 +58,6 @@ private function registerGoogleMaps() {
}

private function registerLeaflet() {


// TODO: inject
$services = MapsFactory::globalInstance()->getMappingServices();

Expand Down
2 changes: 1 addition & 1 deletion tests/System/SemanticMW/MapQueryTest.php
Expand Up @@ -33,7 +33,7 @@ public function setUp() {
}

$this->pageCreator = TestFactory::newInstance()->getPageCreator();
$this->contentFetcher = MapsFactory::globalInstance()->getPageContentFetcher();
$this->contentFetcher = MapsFactory::newDefault()->getPageContentFetcher();
}

public function testMapQuery() {
Expand Down

0 comments on commit 386307e

Please sign in to comment.