- First WIP

This commit is contained in:
mcndave committed 2026-03-17 15:49:32 -04:00
commit 62d5854bbe
8 files changed
+476

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<?php
return [
'ulmus' => [
'connections' => [
'api-weather' => [
'adapter' => getenv("WEATHER_API_ADAPTER"),
'url' => getenv("WEATHER_API_URL"),
'auth' => getenv('WEATHER_API_AUTH') ?: 'token',
'key' => getenv("WEATHER_API_KEY"),
'options' => [],
],
]
]
];
+10
View File
@@ -0,0 +1,10 @@
<?php
return [
'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->resolveConfiguration();
return $adapter;
},
];