Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[master][console] Allow multiple options to be set.#19495

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@SpacePossum
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?yes
Tests pass?yes
LicenseMIT

This PR add the possibility to set multiple options on a formatted string output.
Example:

$output->writeln('<fg=green;options=bold,underscore>Test</>');

Secondly it makes the behavior on invalid values consistent.

// current$output->writeln('<fg=lime;>Test</>');// throws exception$output->writeln('<options=italic;>Test</>');// silent ignore// new$output->writeln('<fg=lime;>Test</>');// throws exception$output->writeln('<options=italic;>Test</>');// throws exception

All other changes are about making the code more strict or other SCA/CS fixes.

@fabpot
Copy link
Member

Anything not related to this new feature should be removed as it would make merging old branches more difficult (and they don't bring any value anyway).

SpacePossum reacted with thumbs up emoji


/**
* @group legacy
* @dataProvider provideInlineStyleTagsWithUnknownOptions

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

missing@requires function Symfony\Bridge\PhpUnit\ErrorAssert::assertDeprecationsAreTriggered annotation

apfelbox reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

done,
just for my understanding, why is this needed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@SpacePossum when tests run in max depth (latest versions of the components supported for an older package) this function might not be available from the bridge.

chalasr reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

make sense, thanks for the info@HeahDude !

@SpacePossumSpacePossumforce-pushed themaster_console_output_options branch from11649ef to243d6fcCompareAugust 29, 2016 11:05
@SpacePossumSpacePossumforce-pushed themaster_console_output_options branch from4cee435 to1430138CompareAugust 29, 2016 11:13
@SpacePossum
Copy link
ContributorAuthor

rebased and all comments addressed

@fabpot
Copy link
Member

Thank you@SpacePossum.

@fabpotfabpot merged commit1430138 intosymfony:masterSep 14, 2016
fabpot added a commit that referenced this pull requestSep 14, 2016
…pacePossum)This PR was merged into the 3.2-dev branch.Discussion----------[master][console] Allow multiple options to be set.| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| License       | MITThis PR add the possibility to set multiple options on a formatted string output.Example:```php$output->writeln('<fg=green;options=bold,underscore>Test</>');```Secondly it makes the behavior on invalid values consistent.```php// current$output->writeln('<fg=lime;>Test</>'); // throws exception$output->writeln('<options=italic;>Test</>'); // silent ignore// new$output->writeln('<fg=lime;>Test</>'); // throws exception$output->writeln('<options=italic;>Test</>'); // throws exception```All other changes are about making the code more strict or other SCA/CS fixes.Commits-------1430138 Allow multiple options to be set.
xabbuh added a commit to symfony/symfony-docs that referenced this pull requestSep 21, 2016
…SpacePossum)This PR was merged into the master branch.Discussion----------[Console] Add multiple options for the output exampleWithsymfony/symfony#19495 merged to master a way to set multiple options has been added.Commits-------c6b4738 Update coloring.rst
@fabpotfabpot mentioned this pull requestOct 27, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@SpacePossum@fabpot@nicolas-grekas@HeahDude@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp