Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #20900 [Console] Descriptors should use Helper::strlen (ogizanagi)
This PR was squashed before being merged into the 2.7 branch (closes #20900). Discussion ---------- [Console] Descriptors should use Helper::strlen | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A Commits ------- 8e9a5f8 [Console] Descriptors should use Helper::strlen
- Loading branch information
Showing
11 changed files
with
479 additions
and
11 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
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
24 changes: 24 additions & 0 deletions
24
src/Symfony/Component/Console/Tests/Fixtures/DescriptorApplicationMbString.php
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,24 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\Console\Tests\Fixtures; | ||
|
||
use Symfony\Component\Console\Application; | ||
|
||
class DescriptorApplicationMbString extends Application | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct('MbString åpplicätion'); | ||
|
||
$this->add(new DescriptorCommandMbString()); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/Symfony/Component/Console/Tests/Fixtures/DescriptorCommandMbString.php
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,32 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\Console\Tests\Fixtures; | ||
|
||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputArgument; | ||
use Symfony\Component\Console\Input\InputOption; | ||
|
||
class DescriptorCommandMbString extends Command | ||
{ | ||
protected function configure() | ||
{ | ||
$this | ||
->setName('descriptor:åèä') | ||
->setDescription('command åèä description') | ||
->setHelp('command åèä help') | ||
->addUsage('-o|--option_name <argument_name>') | ||
->addUsage('<argument_name>') | ||
->addArgument('argument_åèä', InputArgument::REQUIRED) | ||
->addOption('option_åèä', 'o', InputOption::VALUE_NONE) | ||
; | ||
} | ||
} |
Oops, something went wrong.