Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Console] Use UTF-8 bullet for listing #26698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private function getDescriptionTestData(array $objects)
{
$data = array();
foreach ($objects as $name => $object) {
$description = file_get_contents(sprintf('%s/../../Fixtures/Descriptor/%s.%s', __DIR__, $name, $this->getFormat()));
$description = file_get_contents($this->getFixtureFilename($name));
$data[] = array($object, $description);
}

Expand All @@ -223,7 +223,7 @@ private function getContainerBuilderDescriptionTestData(array $objects)
$data = array();
foreach ($objects as $name => $object) {
foreach ($variations as $suffix => $options) {
$description = file_get_contents(sprintf('%s/../../Fixtures/Descriptor/%s_%s.%s', __DIR__, $name, $suffix, $this->getFormat()));
$description = file_get_contents($this->getFixtureFilename($name.'_'.$suffix));
$data[] = array($object, $description, $options);
}
}
Expand All @@ -241,11 +241,23 @@ private function getEventDispatcherDescriptionTestData(array $objects)
$data = array();
foreach ($objects as $name => $object) {
foreach ($variations as $suffix => $options) {
$description = file_get_contents(sprintf('%s/../../Fixtures/Descriptor/%s_%s.%s', __DIR__, $name, $suffix, $this->getFormat()));
$description = file_get_contents($this->getFixtureFilename($name.'_'.$suffix));
$data[] = array($object, $description, $options);
}
}

return $data;
}

private function getFixtureFilename($name)
{
$format = $this->getFormat();
$baseDir = __DIR__.'/../../Fixtures/Descriptor';
$file = $baseDir.'/'.$name.'.'.$format;
if ('\\' === DIRECTORY_SEPARATOR && is_file($winFile = $baseDir.'/win/'.$name.'.'.$format)) {
return $winFile;
}

return $file;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"tag1" tag
----------

* definition_2
definition_2

"tag2" tag
----------

* definition_2
definition_2

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

Symfony Container Public and Private Tags
=========================================

"tag1" tag
----------

* definition_2

"tag2" tag
----------

* definition_2

2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/Console/Style/SymfonyStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function listing(array $elements)
{
$this->autoPrependText();
$elements = array_map(function ($element) {
return sprintf(' * %s', $element);
return sprintf(' %s %s', '\\' === DIRECTORY_SEPARATOR ? '*' : '•', $element);
}, $elements);

$this->writeln($elements);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Lorem ipsum dolor sit amet
* Lorem ipsum dolor sit amet
* consectetur adipiscing elit
Lorem ipsum dolor sit amet
consectetur adipiscing elit

Lorem ipsum dolor sit amet
* Lorem ipsum dolor sit amet
* consectetur adipiscing elit
Lorem ipsum dolor sit amet
consectetur adipiscing elit

Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

* Lorem ipsum dolor sit amet
* consectetur adipiscing elit
Lorem ipsum dolor sit amet
consectetur adipiscing elit

[OK] Lorem ipsum dolor sit amet

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Lorem ipsum dolor sit amet
* Lorem ipsum dolor sit amet
* consectetur adipiscing elit

Lorem ipsum dolor sit amet
* Lorem ipsum dolor sit amet
* consectetur adipiscing elit

Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet
consectetur adipiscing elit

Lorem ipsum dolor sit amet

// Lorem ipsum dolor sit amet
//
// consectetur adipiscing elit

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

* Lorem ipsum dolor sit amet
* consectetur adipiscing elit

[OK] Lorem ipsum dolor sit amet

10 changes: 9 additions & 1 deletion 10 src/Symfony/Component/Console/Tests/Style/SymfonyStyleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,15 @@ public function inputCommandToOutputFilesProvider()
{
$baseDir = __DIR__.'/../Fixtures/Style/SymfonyStyle';

return array_map(null, glob($baseDir.'/command/command_*.php'), glob($baseDir.'/output/output_*.txt'));
return array_map(function ($cmd) use ($baseDir) {
$basename = 'output_'.substr(basename($cmd, '.php'), 8).'.txt';
$output = $baseDir.'/output/'.$basename;
if ('\\' === \DIRECTORY_SEPARATOR && is_file($outputWin = $baseDir.'/output/win/'.$basename)) {
return array($cmd, $outputWin);
}

return array($cmd, $output);
}, glob($baseDir.'/command/command_*.php'));
}

public function testGetErrorStyle()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,14 @@ private function getExpectedDescription($name)

private function getFixtureFilename($name)
{
return sprintf('%s/../../Fixtures/Descriptor/%s.%s', __DIR__, $name, $this->getFormat());
$format = $this->getFormat();
$baseDir = __DIR__.'/../../Fixtures/Descriptor';
$file = $baseDir.'/'.$name.'.'.$format;
if ('\\' === DIRECTORY_SEPARATOR && is_file($winFile = $baseDir.'/win/'.$name.'.'.$format)) {
return $winFile;
}

return $file;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Built-in form types (Symfony\Component\Form\Extension\Core\Type)
Service form types
------------------

* Symfony\Bridge\Doctrine\Form\Type\EntityType
Symfony\Bridge\Doctrine\Form\Type\EntityType

Type extensions
---------------

* Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension
Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension

Type guessers
-------------

* Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser
Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser

Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ Symfony\Component\Form\Extension\Core\Type\ChoiceType (Block prefix: "choice")
Parent types
------------

* Symfony\Component\Form\Extension\Core\Type\FormType
Symfony\Component\Form\Extension\Core\Type\FormType

Type extensions
---------------

* Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension
Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

Built-in form types (Symfony\Component\Form\Extension\Core\Type)
----------------------------------------------------------------

FormType

Service form types
------------------

* Symfony\Bridge\Doctrine\Form\Type\EntityType

Type extensions
---------------

* Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension

Type guessers
-------------

* Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

Symfony\Component\Form\Extension\Core\Type\ChoiceType (Block prefix: "choice")
==============================================================================

--------------------------- -------------------- ------------------------- -----------------------
Options Overridden options Parent options Extension options
--------------------------- -------------------- ------------------------- -----------------------
choice_attr FormType FormType FormTypeCsrfExtension
choice_label -------------------- ------------------------- -----------------------
choice_loader compound action csrf_field_name
choice_name data_class attr csrf_message
choice_translation_domain empty_data auto_initialize csrf_protection
choice_value error_bubbling block_name csrf_token_id
choices by_reference csrf_token_manager
expanded data
group_by disabled
multiple help
placeholder inherit_data
preferred_choices label
label_attr
label_format
mapped
method
post_max_size_message
property_path
required
translation_domain
trim
upload_max_size_message
--------------------------- -------------------- ------------------------- -----------------------

Parent types
------------

* Symfony\Component\Form\Extension\Core\Type\FormType

Type extensions
---------------

* Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension

Morty Proxy This is a proxified and sanitized view of the page, visit original site.