{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony/pulls/comments/77143685","id":77143685,"diff_hunk":"@@ -98,6 +98,19 @@ public function setStyle($name, OutputFormatterStyleInterface $style)\n     }\n \n     /**\n+     * Adds a new style.\n+     *\n+     * @param string      $name       The style name\n+     * @param string|null $foreground The style foreground color name\n+     * @param string|null $background The style background color name\n+     * @param array       $options    The style options\n+     */\n+    public function addStyle($name, $foreground = null, $background = null, array $options = array())","path":"src/Symfony/Component/Console/Formatter/OutputFormatter.php","position":11,"original_position":11,"commit_id":"698f1647d7a8ba74ebddfc4fe3124002fb31537b","original_commit_id":"698f1647d7a8ba74ebddfc4fe3124002fb31537b","user":{"login":"HeahDude","id":10107633,"avatar_url":"https://avatars.githubusercontent.com/u/10107633?v=3","gravatar_id":"","url":"https://api.github.com/users/HeahDude","html_url":"https://github.com/HeahDude","followers_url":"https://api.github.com/users/HeahDude/followers","following_url":"https://api.github.com/users/HeahDude/following{/other_user}","gists_url":"https://api.github.com/users/HeahDude/gists{/gist_id}","starred_url":"https://api.github.com/users/HeahDude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeahDude/subscriptions","organizations_url":"https://api.github.com/users/HeahDude/orgs","repos_url":"https://api.github.com/users/HeahDude/repos","events_url":"https://api.github.com/users/HeahDude/events{/privacy}","received_events_url":"https://api.github.com/users/HeahDude/received_events","type":"User","site_admin":false},"body":"I agree with you, but in that case it may feat because it does create an instance, it just adds it to a property instead or returning it, but what about adding a new line after to actually return it ;)","created_at":"2016-09-01T09:42:46Z","updated_at":"2016-09-01T09:42:46Z","html_url":"https://github.com/symfony/symfony/pull/19748#discussion_r77143685","pull_request_url":"https://api.github.com/repos/symfony/symfony/pulls/19748","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments/77143685"},"html":{"href":"https://github.com/symfony/symfony/pull/19748#discussion_r77143685"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony/pulls/19748"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/19748","id":82887290,"html_url":"https://github.com/symfony/symfony/pull/19748","diff_url":"https://github.com/symfony/symfony/pull/19748.diff","patch_url":"https://github.com/symfony/symfony/pull/19748.patch","issue_url":"https://api.github.com/repos/symfony/symfony/issues/19748","number":19748,"state":"open","locked":false,"title":"[Console][DX] Add convenient method to add a new style to the formatter","user":{"login":"lyrixx","id":408368,"avatar_url":"https://avatars.githubusercontent.com/u/408368?v=3","gravatar_id":"","url":"https://api.github.com/users/lyrixx","html_url":"https://github.com/lyrixx","followers_url":"https://api.github.com/users/lyrixx/followers","following_url":"https://api.github.com/users/lyrixx/following{/other_user}","gists_url":"https://api.github.com/users/lyrixx/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrixx/subscriptions","organizations_url":"https://api.github.com/users/lyrixx/orgs","repos_url":"https://api.github.com/users/lyrixx/repos","events_url":"https://api.github.com/users/lyrixx/events{/privacy}","received_events_url":"https://api.github.com/users/lyrixx/received_events","type":"User","site_admin":false},"body":"| Q             | A\n| ------------- | ---\n| Branch?       | master\n| Bug fix?      | no\n| New feature?  | yes\n| BC breaks?    | no\n| Deprecations? | no\n| Tests pass?   | yes\n| Fixed tickets | -\n| License       | MIT\n| Doc PR        | -\n\nUsage:\n\n```php\n<?php\n\nuse Symfony\\Component\\Console\\Application;\n\nrequire __DIR__.'/vendor/autoload.php';\n\n(new Application)\n    ->register('test')\n    ->setCode(function($input, $output) {\n        $output->getFormatter()->addStyle('fire', 'red', 'yellow', array('bold', 'blink'));\n        $output->writeln('<fire>¡¡¡ FIRE !!!</>');\n        $output->writeln('ok');\n    })\n    ->getApplication()\n    ->setDefaultCommand('test', true)\n    ->run()\n;\n```","created_at":"2016-08-26T13:25:42Z","updated_at":"2016-09-01T09:42:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3721faa48e3691e59c269a9b0129fb047f0366b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony/pulls/19748/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony/pulls/19748/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/19748/comments","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/698f1647d7a8ba74ebddfc4fe3124002fb31537b","head":{"label":"lyrixx:console-style-add","ref":"console-style-add","sha":"698f1647d7a8ba74ebddfc4fe3124002fb31537b","user":{"login":"lyrixx","id":408368,"avatar_url":"https://avatars.githubusercontent.com/u/408368?v=3","gravatar_id":"","url":"https://api.github.com/users/lyrixx","html_url":"https://github.com/lyrixx","followers_url":"https://api.github.com/users/lyrixx/followers","following_url":"https://api.github.com/users/lyrixx/following{/other_user}","gists_url":"https://api.github.com/users/lyrixx/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrixx/subscriptions","organizations_url":"https://api.github.com/users/lyrixx/orgs","repos_url":"https://api.github.com/users/lyrixx/repos","events_url":"https://api.github.com/users/lyrixx/events{/privacy}","received_events_url":"https://api.github.com/users/lyrixx/received_events","type":"User","site_admin":false},"repo":{"id":3148495,"name":"symfony","full_name":"lyrixx/symfony","owner":{"login":"lyrixx","id":408368,"avatar_url":"https://avatars.githubusercontent.com/u/408368?v=3","gravatar_id":"","url":"https://api.github.com/users/lyrixx","html_url":"https://github.com/lyrixx","followers_url":"https://api.github.com/users/lyrixx/followers","following_url":"https://api.github.com/users/lyrixx/following{/other_user}","gists_url":"https://api.github.com/users/lyrixx/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrixx/subscriptions","organizations_url":"https://api.github.com/users/lyrixx/orgs","repos_url":"https://api.github.com/users/lyrixx/repos","events_url":"https://api.github.com/users/lyrixx/events{/privacy}","received_events_url":"https://api.github.com/users/lyrixx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lyrixx/symfony","description":"The Symfony2 PHP framework","fork":true,"url":"https://api.github.com/repos/lyrixx/symfony","forks_url":"https://api.github.com/repos/lyrixx/symfony/forks","keys_url":"https://api.github.com/repos/lyrixx/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lyrixx/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lyrixx/symfony/teams","hooks_url":"https://api.github.com/repos/lyrixx/symfony/hooks","issue_events_url":"https://api.github.com/repos/lyrixx/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/lyrixx/symfony/events","assignees_url":"https://api.github.com/repos/lyrixx/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/lyrixx/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/lyrixx/symfony/tags","blobs_url":"https://api.github.com/repos/lyrixx/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lyrixx/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lyrixx/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/lyrixx/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lyrixx/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/lyrixx/symfony/languages","stargazers_url":"https://api.github.com/repos/lyrixx/symfony/stargazers","contributors_url":"https://api.github.com/repos/lyrixx/symfony/contributors","subscribers_url":"https://api.github.com/repos/lyrixx/symfony/subscribers","subscription_url":"https://api.github.com/repos/lyrixx/symfony/subscription","commits_url":"https://api.github.com/repos/lyrixx/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/lyrixx/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/lyrixx/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/lyrixx/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/lyrixx/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/lyrixx/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lyrixx/symfony/merges","archive_url":"https://api.github.com/repos/lyrixx/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lyrixx/symfony/downloads","issues_url":"https://api.github.com/repos/lyrixx/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/lyrixx/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/lyrixx/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/lyrixx/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lyrixx/symfony/labels{/name}","releases_url":"https://api.github.com/repos/lyrixx/symfony/releases{/id}","deployments_url":"https://api.github.com/repos/lyrixx/symfony/deployments","created_at":"2012-01-10T20:46:58Z","updated_at":"2016-08-24T09:10:48Z","pushed_at":"2016-09-01T09:17:31Z","git_url":"git://github.com/lyrixx/symfony.git","ssh_url":"git@github.com:lyrixx/symfony.git","clone_url":"https://github.com/lyrixx/symfony.git","svn_url":"https://github.com/lyrixx/symfony","homepage":"symfony.com","size":71842,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":0,"forks":4,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"symfony:master","ref":"master","sha":"0cf50e278802717013434f40e408aa83d6c8e2ec","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":458058,"name":"symfony","full_name":"symfony/symfony","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony","description":"The Symfony PHP framework","fork":false,"url":"https://api.github.com/repos/symfony/symfony","forks_url":"https://api.github.com/repos/symfony/symfony/forks","keys_url":"https://api.github.com/repos/symfony/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony/teams","hooks_url":"https://api.github.com/repos/symfony/symfony/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony/events","assignees_url":"https://api.github.com/repos/symfony/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony/tags","blobs_url":"https://api.github.com/repos/symfony/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony/subscription","commits_url":"https://api.github.com/repos/symfony/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony/merges","archive_url":"https://api.github.com/repos/symfony/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony/downloads","issues_url":"https://api.github.com/repos/symfony/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony/releases{/id}","deployments_url":"https://api.github.com/repos/symfony/symfony/deployments","created_at":"2010-01-04T14:21:21Z","updated_at":"2016-09-01T00:03:41Z","pushed_at":"2016-09-01T09:35:41Z","git_url":"git://github.com/symfony/symfony.git","ssh_url":"git@github.com:symfony/symfony.git","clone_url":"https://github.com/symfony/symfony.git","svn_url":"https://github.com/symfony/symfony","homepage":"symfony.com","size":135092,"stargazers_count":12871,"watchers_count":12871,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":5016,"mirror_url":null,"open_issues_count":774,"forks":5016,"open_issues":774,"watchers":12871,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/19748"},"html":{"href":"https://github.com/symfony/symfony/pull/19748"},"issue":{"href":"https://api.github.com/repos/symfony/symfony/issues/19748"},"comments":{"href":"https://api.github.com/repos/symfony/symfony/issues/19748/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony/pulls/19748/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony/pulls/19748/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony/statuses/698f1647d7a8ba74ebddfc4fe3124002fb31537b"}}}}
{"actor":{"display_login":"HeahDude"}}