Mercurial > packages > auth
diff src/AuthServiceProvider.php @ 0:90e38de8f2ba
Initial Commit
| author | luka |
|---|---|
| date | Wed, 13 Aug 2025 22:17:20 -0400 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/AuthServiceProvider.php Wed Aug 13 22:17:20 2025 -0400 @@ -0,0 +1,45 @@ +<?php + +namespace Wizard\Auth; + +use Illuminate\Contracts\Support\DeferrableProvider; +use Illuminate\Support\ServiceProvider; + +class AuthServiceProvider extends ServiceProvider implements DeferrableProvider +{ + /** + * Register any application services. + * + * @return void + */ + public function register() + { + // + } + + /** + * Bootstrap any application services. + * + * @return void + */ + public function boot() + { + if (! $this->app->runningInConsole()) { + return; + } + + $this->commands([ + Console\InstallCommand::class, + ]); + } + + /** + * Get the services provided by the provider. + * + * @return array + */ + public function provides() + { + return [Console\InstallCommand::class]; + } +}
