-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#19 feat: create command to check all providers
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace CSlant\Blog\Core\Commands; | ||
|
||
use Illuminate\Console\Command; | ||
use Illuminate\Support\Facades\App; | ||
|
||
class ListProviders extends Command | ||
{ | ||
protected $signature = 'providers:list'; | ||
protected $description = 'List all registered service providers'; | ||
|
||
public function handle() | ||
Check failure on line 13 in src/Commands/ListProviders.php GitHub Actions / PHPStan - P8.1
Check failure on line 13 in src/Commands/ListProviders.php GitHub Actions / PHPStan - P8.2
Check failure on line 13 in src/Commands/ListProviders.php GitHub Actions / PHPStan - P8.1
|
||
{ | ||
$providers = App::getLoadedProviders(); | ||
|
||
foreach ($providers as $provider => $loaded) { | ||
if ($loaded) { | ||
$this->info($provider); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters