1
<?php
2

3
namespace Nuwave\Lighthouse\Validation;
4

5
use Illuminate\Contracts\Events\Dispatcher;
6
use Illuminate\Support\ServiceProvider;
7
use Nuwave\Lighthouse\Events\RegisterDirectiveNamespaces;
8

9
class ValidationServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap any application services.
13
     */
14 1
    public function boot(Dispatcher $dispatcher): void
15
    {
16 1
        $dispatcher->listen(
17 1
            RegisterDirectiveNamespaces::class,
18
            function (RegisterDirectiveNamespaces $registerDirectiveNamespaces): string {
19 1
                return __NAMESPACE__;
20
            }
21
        );
22
    }
23
}

Read our documentation on viewing source code .

Loading