32 lines
585 B
PHP
32 lines
585 B
PHP
<?php
|
|
|
|
namespace CachetHQ\Cachet\Providers;
|
|
|
|
use CachetHQ\Cachet\Auth\ApiKeyAuthenticator;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Boot the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Register the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->app->bindShared('CachetHQ\Cachet\Auth\ApiKeyAuthenticator', function () {
|
|
return new ApiKeyAuthenticator();
|
|
});
|
|
}
|
|
}
|