Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make DataProviderFailuresAndExceptionsCest less fragile * Make stecman/symfony-console-completion optional * Allow Symfony 4 components install * Make default Symfony 4.0.0 for CI
- Loading branch information
Showing
5 changed files
with
77 additions
and
33 deletions.
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,40 @@ | ||
<?php | ||
namespace Codeception\Command; | ||
|
||
use Codeception\Configuration; | ||
use Stecman\Component\Symfony\Console\BashCompletion\Completion as ConsoleCompletion; | ||
use Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand; | ||
use Stecman\Component\Symfony\Console\BashCompletion\CompletionHandler; | ||
use Stecman\Component\Symfony\Console\BashCompletion\Completion\ShellPathCompletion as ShellPathCompletion; | ||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputDefinition; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Input\InputOption; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
class CompletionFallback extends Command | ||
{ | ||
protected function configure() | ||
{ | ||
$this | ||
->setName('_completion') | ||
->setDescription('BASH completion hook.') | ||
->setHelp(<<<END | ||
To enable BASH completion, install optional stecman/symfony-console-completion first: | ||
<comment>composer require stecman/symfony-console-completion</comment> | ||
END | ||
); | ||
|
||
// Hide this command from listing if supported | ||
// Command::setHidden() was not available before Symfony 3.2.0 | ||
if (method_exists($this, 'setHidden')) { | ||
$this->setHidden(true); | ||
} | ||
} | ||
protected function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
$output->writeln("Install optional <comment>stecman/symfony-console-completion</comment>"); | ||
} | ||
} |
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