-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bd7c33
commit e909a07
Showing
4 changed files
with
39 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
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
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
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,29 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace PHPStan\Symfony; | ||
|
||
use PHPStan\Command\Output; | ||
use PHPStan\Diagnose\DiagnoseExtension; | ||
use function sprintf; | ||
|
||
class SymfonyDiagnoseExtension implements DiagnoseExtension | ||
{ | ||
|
||
/** @var ConsoleApplicationResolver */ | ||
private $consoleApplicationResolver; | ||
|
||
public function __construct(ConsoleApplicationResolver $consoleApplicationResolver) | ||
{ | ||
$this->consoleApplicationResolver = $consoleApplicationResolver; | ||
} | ||
|
||
public function print(Output $output): void | ||
{ | ||
$output->writeLineFormatted(sprintf( | ||
'<info>Symfony\'s consoleApplicationLoader:</info> %s', | ||
$this->consoleApplicationResolver->hasConsoleApplicationLoader() ? 'In use' : 'No' | ||
)); | ||
$output->writeLineFormatted(''); | ||
} | ||
|
||
} |