Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
uniformized all calls to the console to 'php app/console'
  • Loading branch information
fabpot committed Jun 27, 2011
1 parent 2a51178 commit 617f240
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion book/doctrine.rst
Expand Up @@ -37,7 +37,7 @@ persist it to the database and fetch it back out.

.. code-block:: bash
./app/console generate:bundle --namespace=Acme/StoreBundle
php app/console generate:bundle --namespace=Acme/StoreBundle
Configuring the Database
~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion book/forms.rst
Expand Up @@ -56,7 +56,7 @@ going to need to build a form. But before you begin, let's focus on the generic

.. code-block:: bash
./app/console generate:bundle --namespace=Acme/StoreBundle
php app/console generate:bundle --namespace=Acme/StoreBundle
This type of class is commonly called a "plain-old-PHP-object" because, so far,
it has nothing to do with Symfony or any other library. It's quite simply a
Expand Down
8 changes: 4 additions & 4 deletions book/page_creation.rst
Expand Up @@ -64,8 +64,8 @@ build in this chapter), run the following command and follow the on-screen
instructions (use all of the default options):

.. code-block:: bash
./app/console generate:bundle --namespace=Acme/HelloBundle --format=yml
php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml
Behind the scenes, a directory is created for the bundle at ``src/Acme/HelloBundle``.
A line is also automatically added to the ``app/AppKernel.php`` file so that
Expand Down Expand Up @@ -641,7 +641,7 @@ generating a basic bundle skeleton:

.. code-block:: bash
./app/console generate:bundle --namespace=Acme/TestBundle
php app/console generate:bundle --namespace=Acme/TestBundle
The bundle skeleton generates with a basic controller, template and routing
resource that can be customized. You'll learn more about Symfony2's command-line
Expand Down Expand Up @@ -850,7 +850,7 @@ routing and Twig templates are compiled into flat PHP classes and cached.
When viewing changes in the ``prod`` environment, you'll need to clear these
cached files and allow them to rebuild::

./app/console cache:clear --env=prod
php app/console cache:clear --env=prod

.. note::

Expand Down
4 changes: 2 additions & 2 deletions book/routing.rst
Expand Up @@ -1009,7 +1009,7 @@ the command by running the following from the root of your project.

.. code-block:: bash
$ php app/console router:debug
php app/console router:debug
The command will print a helpful list of *all* the configured routes in
your application:
Expand All @@ -1028,7 +1028,7 @@ the route name after the command:

.. code-block:: bash
$ php app/console router:debug article_show
php app/console router:debug article_show
.. index::
single: Routing; Generating URLs
Expand Down
2 changes: 1 addition & 1 deletion book/translation.rst
Expand Up @@ -269,7 +269,7 @@ filesystem and discovered by Symfony, thanks to some conventions.

.. code-block:: bash
$ php app/console cache:clear
php app/console cache:clear
.. index::
single: Translations; Translation resource locations
Expand Down
16 changes: 8 additions & 8 deletions cookbook/console.rst
Expand Up @@ -57,7 +57,7 @@ Test the new console command by running the following

.. code-block:: bash
$ php app/console demo:greet Fabien
app/console demo:greet Fabien
This will print the following to the command line:

Expand All @@ -69,7 +69,7 @@ You can also use the ``--yell`` option to make everything uppercase:

.. code-block:: bash
$ php app/console demo:greet Fabien --yell
app/console demo:greet Fabien --yell
This prints::

Expand Down Expand Up @@ -100,8 +100,8 @@ The command can now be used in either of the following ways:

.. code-block:: bash
$ php app/console demo:greet Fabien
$ php app/console demo:greet Fabien Potencier
app/console demo:greet Fabien
app/console demo:greet Fabien Potencier
Using Command Options
---------------------
Expand Down Expand Up @@ -139,9 +139,9 @@ flag:

.. code-block:: bash
$ php app/console demo:greet Fabien
app/console demo:greet Fabien
$ php app/console demo:greet Fabien --iterations=5
app/console demo:greet Fabien --iterations=5
The first example will only print once, since ``iterations`` is empty and
defaults to ``1`` (the last argument of ``addOption``). The second example
Expand All @@ -152,8 +152,8 @@ will work:

.. code-block:: bash
$ php app/console demo:greet Fabien --iterations=5 --yell
$ php app/console demo:greet Fabien --yell --iterations=5
app/console demo:greet Fabien --iterations=5 --yell
app/console demo:greet Fabien --yell --iterations=5
Testing Commands
----------------
Expand Down
6 changes: 3 additions & 3 deletions cookbook/doctrine/doctrine_fixtures.rst
Expand Up @@ -124,13 +124,13 @@ line by using the ``doctrine:fixtures:load`` command:

.. code-block:: bash
$ php app/console doctrine:fixtures:load
php app/console doctrine:fixtures:load
If you're using the ODM, use the ``doctrine:mongodb:fixtures:load`` command instead:

.. code-block:: bash
$ php app/console doctrine:mongodb:fixtures:load
php app/console doctrine:mongodb:fixtures:load
The task will look inside the ``DataFixtures/ORM`` (or ``DataFixtures/ODM``
for the ODM) directory of each bundle and execute each class that implements
Expand All @@ -156,7 +156,7 @@ A full example use might look like this:

.. code-block:: bash
$ php app/console doctrine:fixtures:load --fixtures=/path/to/fixture1 --fixtures=/path/to/fixture2 --append --em=foo_manager
php app/console doctrine:fixtures:load --fixtures=/path/to/fixture1 --fixtures=/path/to/fixture2 --append --em=foo_manager
Sharing Objects between Fixtures
--------------------------------
Expand Down
12 changes: 6 additions & 6 deletions cookbook/doctrine/migrations.rst
Expand Up @@ -87,7 +87,7 @@ the ``status`` command:

.. code-block:: bash
$ php app/console doctrine:migrations:status
php app/console doctrine:migrations:status
== Configuration
Expand All @@ -108,7 +108,7 @@ for you.

.. code-block:: bash
$ php app/console doctrine:migrations:generate
php app/console doctrine:migrations:generate
Generated new migration class to "/path/to/project/app/DoctrineMigrations/Version20100621140655.php"
Have a look at the newly generated migration class and you will see something
Expand Down Expand Up @@ -137,7 +137,7 @@ migration to execute:

.. code-block:: bash
$ php app/console doctrine:migrations:status
php app/console doctrine:migrations:status
== Configuration
Expand All @@ -161,7 +161,7 @@ finally migrate when you're ready:

.. code-block:: bash
$ php app/console doctrine:migrations:migrate
php app/console doctrine:migrations:migrate
For more information on how to write the migrations themselves (i.e. how to
fill in the ``up()`` and ``down()`` methods), see the official Doctrine Migrations
Expand Down Expand Up @@ -264,7 +264,7 @@ running the following command:

.. code-block:: bash
$ php app/console doctrine:migrations:diff
php app/console doctrine:migrations:diff
You should see a message that a new migration class was generated based on
the schema differences. If you open this file, you'll find that it has the
Expand All @@ -273,7 +273,7 @@ to add the table to your database:

.. code-block:: bash
$ php app/console doctrine:migrations:migrate
php app/console doctrine:migrations:migrate
The moral of the story is this: after each change you make to your Doctrine
mapping information, run the ``doctrine:migrations:diff`` command to automatically
Expand Down
2 changes: 1 addition & 1 deletion cookbook/doctrine/mongodb.rst
Expand Up @@ -118,7 +118,7 @@ documents to and from MongoDB.

.. code-block:: bash
./app/console generate:bundle --namespace=Acme/StoreBundle
php app/console generate:bundle --namespace=Acme/StoreBundle
Creating a Document Class
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions cookbook/doctrine/reverse_engineering.rst
Expand Up @@ -97,8 +97,8 @@ schema and build related entity classes by executing the following two commands.

.. code-block:: bash
$ php app/console doctrine:mapping:import AcmeBlogBundle annotation
$ php app/console doctrine:generate:entities AcmeBlogBundle
php app/console doctrine:mapping:import AcmeBlogBundle annotation
php app/console doctrine:generate:entities AcmeBlogBundle
The first command generates entity classes with an annotations mapping, but
you can of course change the ``annotation`` argument to ``xml`` or ``yml``.
Expand Down
2 changes: 1 addition & 1 deletion cookbook/symfony1.rst
Expand Up @@ -89,7 +89,7 @@ directory. This allows you to keep assets organized inside your bundle, but
still make them available to the public. To make sure that all bundles are
available, run the following command::

./app/console_dev assets:install web --symlink
php app/console assets:install web

.. note::

Expand Down
4 changes: 2 additions & 2 deletions quick_tour/the_architecture.rst
Expand Up @@ -340,13 +340,13 @@ Run it without any arguments to learn more about its capabilities:

.. code-block:: bash
$ ./app/console
php app/console
The ``--help`` option helps you discover the usage of a command:

.. code-block:: bash
$ ./app/console router:debug --help
php app/console router:debug --help
Final Thoughts
--------------
Expand Down

0 comments on commit 617f240

Please sign in to comment.