summaryrefslogtreecommitdiff
path: root/src/Helpers/AuthenticatorServiceProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Helpers/AuthenticatorServiceProvider.php')
-rw-r--r--src/Helpers/AuthenticatorServiceProvider.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Helpers/AuthenticatorServiceProvider.php b/src/Helpers/AuthenticatorServiceProvider.php
new file mode 100644
index 00000000..b7508b01
--- /dev/null
+++ b/src/Helpers/AuthenticatorServiceProvider.php
@@ -0,0 +1,17 @@
+<?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);
+ }
+}