File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 3
3
namespace HichemtabTech \TokensValidation \Laravel \Providers ;
4
4
5
5
use HichemtabTech \TokensValidation \TokensValidation ;
6
- use Illuminate \Contracts \Container \BindingResolutionException ;
7
6
use Illuminate \Support \ServiceProvider ;
8
7
9
8
class TokensValidationProvider extends ServiceProvider
@@ -12,26 +11,25 @@ class TokensValidationProvider extends ServiceProvider
12
11
* Register services.
13
12
*
14
13
* @return void
15
- * @throws BindingResolutionException
16
14
*/
17
15
public function register (): void
18
16
{
19
17
$ this ->publishConfig ();
20
18
$ this ->app ->singleton (TokensValidation::class, function () {
21
19
return TokensValidation::class;
22
20
});
23
-
24
- /*$this->app->make('HichemtabTech\TokensValidation\Laravel\Http\Controllers\InvitationAnswererController')
25
- ->loadRoutes();*/
26
21
}
27
22
28
23
/**
29
24
* Bootstrap services.
30
25
*
31
26
* @return void
27
+ * @noinspection PhpUndefinedFunctionInspection
32
28
*/
33
29
public function boot (): void
34
30
{
31
+ TokensValidation::setConfig (config ('tokensvalidation ' ));
32
+ TokensValidation::prepare ();
35
33
$ this ->app ->singleton (TokensValidation::class, function () {
36
34
return TokensValidation::class;
37
35
});
You can’t perform that action at this time.
0 commit comments