Skip to content

Commit

Permalink
Moved versionadded to the right section
Browse files Browse the repository at this point in the history
  • Loading branch information
dcsg committed Jan 5, 2014
1 parent 730985f commit 012456d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/console/changing_default_behavior.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
Changing the Default Behavior
=============================

.. versionadded:: 2.5,
The :method:`Symfony\\Component\\Console\\Application::setDefaultCommand`
method was introduced in version 2.5

When building a command line tool, you may need to customize it to fit your needs.
Probably you want to change the Default Command that the Application runs or
maybe you just want to run a Single Command instead of have to pass the command
Expand All @@ -16,6 +12,10 @@ name each time. Fortunately it is possible to do both.
Changing the Default Command
----------------------------

.. versionadded:: 2.5,
The :method:`Symfony\\Component\\Console\\Application::setDefaultCommand`
method was introduced in version 2.5

By default the Application will always run the ListCommand. In order to change
the default command you just need to pass the command name you want to run by
default to the :method:`Symfony\\Component\\Console\\Application::setDefaultCommand`
Expand Down

0 comments on commit 012456d

Please sign in to comment.