EvilFreelancer/bookeo-api-php

View on GitHub
src/Laravel/ClientServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bookeo\Laravel;

use Illuminate\Support\ServiceProvider;

class ClientServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot(): void
    {
        $this->publishes([
            __DIR__ . '/../../configs/bookeo-api.php' => config_path('bookeo-api.php'),
        ]);
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register(): void
    {
        $this->mergeConfigFrom(
            __DIR__ . '/../../configs/bookeo-api.php', 'bookeo-api'
        );

        $this->app->bind(ClientWrapper::class);
    }
}