Fix/metar reading (#353)
* Fix reading of the METAR information for AviationWeather. Fix the DI * StyleCI fixes
This commit is contained in:
17
app/Providers/WeatherServiceProvider.php
Executable file
17
app/Providers/WeatherServiceProvider.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Contracts\Metar;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class WeatherServiceProvider extends ServiceProvider
|
||||
{
|
||||
public function boot(): void
|
||||
{
|
||||
$this->app->bind(
|
||||
Metar::class,
|
||||
config('phpvms.metar')
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user