- Working version
This commit is contained in:
1 parent
c2e7628b22
commit
9c70225a77
7 files changed
+173
-81
No files matched your search
@@ -1,8 +1,10 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
Ulmus\Api\Weather\ApiHandler::class => DI\create(Ulmus\Api\Weather\ApiHandler::class)->constructor(getenv('WEATHER_API_UNIT_SCALE')),
|
||||
|
||||
'api.weather' => function($c) {
|
||||
$adapter = new \Ulmus\Api\ConnectionAdapter($c->create(Ulmus\Api\Weather\ApiHandler::class)->constructor(getenv('WEATHER_API_UNIT_SCALE')), 'api-weather', $c->get('config')['ulmus'], false);
|
||||
$adapter = new \Ulmus\Api\ConnectionAdapter($c->get(Ulmus\Api\Weather\ApiHandler::class), 'api-weather', $c->get('config')['ulmus'], false);
|
||||
$adapter->resolveConfiguration();
|
||||
|
||||
return $adapter;
|
||||
|
||||
Reference in new issue
Block a user