You've already forked Php-Template
All checks were successful
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 1m42s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 1m38s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 2m5s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 2m44s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 2m28s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in 1m27s
Reviewed-on: #16 Co-authored-by: Ron Rise <ron@siteworxpro.com> Co-committed-by: Ron Rise <ron@siteworxpro.com>
24 lines
488 B
PHP
24 lines
488 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Siteworxpro\App\Services\ServiceProviders;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Siteworxpro\App\Events\Dispatcher;
|
|
|
|
/**
|
|
* Class DispatcherServiceProvider
|
|
*
|
|
* @package Siteworxpro\App\Services\ServiceProviders
|
|
*/
|
|
class DispatcherServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->singleton(Dispatcher::class, function () {
|
|
return new Dispatcher();
|
|
});
|
|
}
|
|
}
|