jvleeuwen/laravel-cspreporter

View on GitHub
src/CspreporterServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Jvleeuwen\Cspreporter;

use Illuminate\Support\ServiceProvider;

class CspreporterServiceProvider extends ServiceProvider
{
    public function boot()
    {
        $this->publishes([__DIR__.'/../config/cspreporter.php' => config_path('cspreporter.php')], 'config');
    }

    public function register()
    {
        $this->app->singleton('cspreporter', function () {
            return new CspreporterService;
        });
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return ['cspreporter'];
    }
}