GitHub PullRequestReviewCommentEvent at 2014-01-05 14:44:06
Repository: symfony-docs
Actor: WouterJ
Payload: {"comment":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/8655504","id":8655504,"diff_hunk":"@@ -1,8 +1,49 @@\n .. index::\n-   single: Console; Single command application\n+   single: Console; Changing the Default Behavior\n+\n+Changing the Default Behavior\n+=============================\n+\n+When building a command line tool, you may need to customize it to fit your needs.\n+Probably you want to change the Default Command that the Application runs or\n+maybe you just want to run a Single Command instead of have to pass the command\n+name each time. Fortunately it is possible to do both.\n+\n+Changing the Default Command\n+----------------------------\n+\n+By default the Application will always run the ListCommand. In order to change\n+the default command you just need to pass the command name you want to run by\n+default to the :method:`Symfony\\\\Component\\\\Console\\\\Application::setDefaultCommand`\n+method::\n+\n+    #!/usr/bin/env php\n+    <?php\n+    // app/console\n+\n+    use Acme\\DemoBundle\\Command\\GreetCommand;","path":"components/console/changing_default_behavior.rst","position":25,"original_position":25,"commit_id":"b29ab899a445a2686189a9266e6ec8fea4b3cae4","original_commit_id":"b29ab899a445a2686189a9266e6ec8fea4b3cae4","user":{"login":"WouterJ","id":749025,"avatar_url":"https://gravatar.com/avatar/331582449435f5efa35be870ab76f1a9?d=https%3A%2F%2Fidenticons.github.com%2Fcad34e5c3d17a170a47cbd06fe684d6b.png&r=x","gravatar_id":"331582449435f5efa35be870ab76f1a9","url":"https://api.github.com/users/WouterJ","html_url":"https://github.com/WouterJ","followers_url":"https://api.github.com/users/WouterJ/followers","following_url":"https://api.github.com/users/WouterJ/following{/other_user}","gists_url":"https://api.github.com/users/WouterJ/gists{/gist_id}","starred_url":"https://api.github.com/users/WouterJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WouterJ/subscriptions","organizations_url":"https://api.github.com/users/WouterJ/orgs","repos_url":"https://api.github.com/users/WouterJ/repos","events_url":"https://api.github.com/users/WouterJ/events{/privacy}","received_events_url":"https://api.github.com/users/WouterJ/received_events","type":"User","site_admin":false},"body":"I think we should not use Bundle in the components. Maybe just \"Acme\\Demo\" (without Lib)","created_at":"2014-01-05T14:44:06Z","updated_at":"2014-01-05T14:44:06Z","html_url":"https://github.com/symfony/symfony-docs/pull/3426#discussion_r8655504","pull_request_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/3426","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/8655504"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/3426#discussion_r8655504"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/3426"}}}}