kawax/laravel-google-sheets

View on GitHub
src/Providers/SheetsServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Revolution\Google\Sheets\Providers;

use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
use Revolution\Google\Sheets\Contracts\Factory;
use Revolution\Google\Sheets\SheetsClient;

class SheetsServiceProvider extends ServiceProvider implements DeferrableProvider
{
    /**
     * Register the service provider.
     */
    public function register(): void
    {
        $this->app->singleton(Factory::class, SheetsClient::class);
    }

    /**
     * Get the services provided by the provider.
     *
     * @codeCoverageIgnore
     */
    public function provides(): array
    {
        return [Factory::class];
    }
}