diff --git a/book/doctrine.rst b/book/doctrine.rst index 61e59530345..85dafa5c3b3 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/book/forms.rst b/book/forms.rst index 0ba4ea48acd..2ed0e8bcb99 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -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 diff --git a/book/page_creation.rst b/book/page_creation.rst index 38b70cbd004..0146a8fd49e 100644 --- a/book/page_creation.rst +++ b/book/page_creation.rst @@ -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 @@ -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 @@ -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:: diff --git a/book/routing.rst b/book/routing.rst index f12d76bddc4..8df4fd8aeb1 100644 --- a/book/routing.rst +++ b/book/routing.rst @@ -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: @@ -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 diff --git a/book/translation.rst b/book/translation.rst index c7709595034..067b4a209ab 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -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 diff --git a/cookbook/console.rst b/cookbook/console.rst index b99d5427b36..332b17794f6 100755 --- a/cookbook/console.rst +++ b/cookbook/console.rst @@ -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: @@ -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:: @@ -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 --------------------- @@ -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 @@ -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 ---------------- diff --git a/cookbook/doctrine/doctrine_fixtures.rst b/cookbook/doctrine/doctrine_fixtures.rst index a1b4a7f175f..9b11360cb05 100644 --- a/cookbook/doctrine/doctrine_fixtures.rst +++ b/cookbook/doctrine/doctrine_fixtures.rst @@ -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 @@ -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 -------------------------------- diff --git a/cookbook/doctrine/migrations.rst b/cookbook/doctrine/migrations.rst index ba06a32dc29..2b8a70d240c 100644 --- a/cookbook/doctrine/migrations.rst +++ b/cookbook/doctrine/migrations.rst @@ -87,7 +87,7 @@ the ``status`` command: .. code-block:: bash - $ php app/console doctrine:migrations:status + php app/console doctrine:migrations:status == Configuration @@ -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 @@ -137,7 +137,7 @@ migration to execute: .. code-block:: bash - $ php app/console doctrine:migrations:status + php app/console doctrine:migrations:status == Configuration @@ -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 @@ -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 @@ -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 diff --git a/cookbook/doctrine/mongodb.rst b/cookbook/doctrine/mongodb.rst index bd076eec184..67f32726509 100644 --- a/cookbook/doctrine/mongodb.rst +++ b/cookbook/doctrine/mongodb.rst @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/cookbook/doctrine/reverse_engineering.rst b/cookbook/doctrine/reverse_engineering.rst index 62410a69c7b..0bba7abeb9e 100644 --- a/cookbook/doctrine/reverse_engineering.rst +++ b/cookbook/doctrine/reverse_engineering.rst @@ -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``. diff --git a/cookbook/symfony1.rst b/cookbook/symfony1.rst index 45d075168f3..5d41342de89 100644 --- a/cookbook/symfony1.rst +++ b/cookbook/symfony1.rst @@ -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:: diff --git a/quick_tour/the_architecture.rst b/quick_tour/the_architecture.rst index 12b9eb1a463..69e8a4c67fc 100644 --- a/quick_tour/the_architecture.rst +++ b/quick_tour/the_architecture.rst @@ -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 --------------