Skip to content

Rename "console tasks" to "console commands" #7346

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion console/input.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Next, use this in the command to print the message multiple times::
$output->writeln($text);
}

Now, when you run the task, you can optionally specify a ``--iterations``
Now, when you run the command, you can optionally specify a ``--iterations``
flag:

.. code-block:: terminal
Expand Down
2 changes: 1 addition & 1 deletion doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ in your application. To do this, run:
your entities) with how it *actually* looks, and executes the SQL statements
needed to *update* the database schema to where it should be. In other
words, if you add a new property with mapping metadata to ``Product``
and run this task, it will execute the "ALTER TABLE" statement needed
and run this command, it will execute the "ALTER TABLE" statement needed
to add that new column to the existing ``product`` table.

An even better way to take advantage of this functionality is via
Expand Down
2 changes: 1 addition & 1 deletion doctrine/associations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ the class for you.
--entity="AppBundle:Category" \
--fields="name:string(255)"

This task generates the ``Category`` entity for you, with an ``id`` field,
This command generates the ``Category`` entity for you, with an ``id`` field,
a ``name`` field and the associated getter and setter functions.

Relationship Mapping Metadata
Expand Down
4 changes: 2 additions & 2 deletions doctrine/console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ command:
A list of available commands will print out. You can find out more information
about any of these commands (or any Symfony command) by running the ``help``
command. For example, to get details about the ``doctrine:database:create``
task, run:
command, run:

.. code-block:: terminal

$ php app/console help doctrine:database:create

Some notable or interesting tasks include:
Some notable or interesting commands include:

* ``doctrine:ensure-production-settings`` - checks to see if the current
environment is configured efficiently for production. This should always
Expand Down
2 changes: 1 addition & 1 deletion reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ kernel.cache_warmer
process

Cache warming occurs whenever you run the ``cache:warmup`` or ``cache:clear``
task (unless you pass ``--no-warmup`` to ``cache:clear``). It is also run
commands (unless you pass ``--no-warmup`` to ``cache:clear``). It is also run
Copy link
Member

Choose a reason for hiding this comment

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

command

when handling the request, if it wasn't done by one of the commands yet.
The purpose is to initialize any cache that will be needed by the application
and prevent the first user from any significant "cache hit" where the cache
Expand Down
4 changes: 2 additions & 2 deletions security/acl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ First, you need to configure the connection the ACL system is supposed to use:
domain objects. You can use whatever mapper you like for your objects, be it
Doctrine ORM, MongoDB ODM, Propel, raw SQL, etc. The choice is yours.

After the connection is configured, you have to import the database structure.
Fortunately, there is a task for this. Simply run the following command:
After the connection is configured, you have to import the database structure
running the following command:

.. code-block:: terminal

Expand Down
2 changes: 1 addition & 1 deletion testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ Injection Container::
$container = $client->getContainer();

For a list of services available in your application, use the ``debug:container``
console task.
command.

.. versionadded:: 2.6
Prior to Symfony 2.6, this command was called ``container:debug``.
Expand Down