summaryrefslogtreecommitdiff
path: root/src/Helpers/AuthenticatorServiceProvider.php
blob: 715a592f6a601947ce652cdddd4e3a8751241b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

namespace Engelsystem\Helpers;

use Engelsystem\Container\ServiceProvider;

class AuthenticatorServiceProvider extends ServiceProvider
{
    public function register()
    {
        /** @var Authenticator $authenticator */
        $authenticator = $this->app->make(Authenticator::class);

        $this->app->instance(Authenticator::class, $authenticator);
        $this->app->instance('authenticator', $authenticator);
        $this->app->instance('auth', $authenticator);
    }
}