mirror of
https://github.com/chenasraf/latch.git
synced 2026-05-17 17:28:08 +00:00
20 lines
509 B
PHP
20 lines
509 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Latch\Integration\Laravel;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Latch\Contracts\HookRegistryInterface;
|
|
use Latch\HookRegistry;
|
|
|
|
class LatchServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->singleton(HookRegistryInterface::class, HookRegistry::class);
|
|
$this->app->alias(HookRegistryInterface::class, HookRegistry::class);
|
|
$this->app->alias(HookRegistryInterface::class, 'latch');
|
|
}
|
|
}
|