Skip to content

Commit 617f240

Browse files
committed
uniformized all calls to the console to 'php app/console'
1 parent 2a51178 commit 617f240

File tree

12 files changed

+32
-32
lines changed

12 files changed

+32
-32
lines changed

book/doctrine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ persist it to the database and fetch it back out.
3737

3838
.. code-block:: bash
3939
40-
./app/console generate:bundle --namespace=Acme/StoreBundle
40+
php app/console generate:bundle --namespace=Acme/StoreBundle
4141
4242
Configuring the Database
4343
~~~~~~~~~~~~~~~~~~~~~~~~

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ going to need to build a form. But before you begin, let's focus on the generic
5656

5757
.. code-block:: bash
5858
59-
./app/console generate:bundle --namespace=Acme/StoreBundle
59+
php app/console generate:bundle --namespace=Acme/StoreBundle
6060
6161
This type of class is commonly called a "plain-old-PHP-object" because, so far,
6262
it has nothing to do with Symfony or any other library. It's quite simply a

book/page_creation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ build in this chapter), run the following command and follow the on-screen
6464
instructions (use all of the default options):
6565

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

642642
.. code-block:: bash
643643
644-
./app/console generate:bundle --namespace=Acme/TestBundle
644+
php app/console generate:bundle --namespace=Acme/TestBundle
645645
646646
The bundle skeleton generates with a basic controller, template and routing
647647
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.
850850
When viewing changes in the ``prod`` environment, you'll need to clear these
851851
cached files and allow them to rebuild::
852852

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

855855
.. note::
856856

book/routing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ the command by running the following from the root of your project.
10091009

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

10291029
.. code-block:: bash
10301030
1031-
$ php app/console router:debug article_show
1031+
php app/console router:debug article_show
10321032
10331033
.. index::
10341034
single: Routing; Generating URLs

book/translation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ filesystem and discovered by Symfony, thanks to some conventions.
269269

270270
.. code-block:: bash
271271
272-
$ php app/console cache:clear
272+
php app/console cache:clear
273273
274274
.. index::
275275
single: Translations; Translation resource locations

cookbook/console.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Test the new console command by running the following
5757

5858
.. code-block:: bash
5959
60-
$ php app/console demo:greet Fabien
60+
app/console demo:greet Fabien
6161
6262
This will print the following to the command line:
6363

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

7070
.. code-block:: bash
7171
72-
$ php app/console demo:greet Fabien --yell
72+
app/console demo:greet Fabien --yell
7373
7474
This prints::
7575

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

101101
.. code-block:: bash
102102
103-
$ php app/console demo:greet Fabien
104-
$ php app/console demo:greet Fabien Potencier
103+
app/console demo:greet Fabien
104+
app/console demo:greet Fabien Potencier
105105
106106
Using Command Options
107107
---------------------
@@ -139,9 +139,9 @@ flag:
139139

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

153153
.. code-block:: bash
154154
155-
$ php app/console demo:greet Fabien --iterations=5 --yell
156-
$ php app/console demo:greet Fabien --yell --iterations=5
155+
app/console demo:greet Fabien --iterations=5 --yell
156+
app/console demo:greet Fabien --yell --iterations=5
157157
158158
Testing Commands
159159
----------------

cookbook/doctrine/doctrine_fixtures.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ line by using the ``doctrine:fixtures:load`` command:
124124

125125
.. code-block:: bash
126126
127-
$ php app/console doctrine:fixtures:load
127+
php app/console doctrine:fixtures:load
128128
129129
If you're using the ODM, use the ``doctrine:mongodb:fixtures:load`` command instead:
130130

131131
.. code-block:: bash
132132
133-
$ php app/console doctrine:mongodb:fixtures:load
133+
php app/console doctrine:mongodb:fixtures:load
134134
135135
The task will look inside the ``DataFixtures/ORM`` (or ``DataFixtures/ODM``
136136
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:
156156

157157
.. code-block:: bash
158158
159-
$ php app/console doctrine:fixtures:load --fixtures=/path/to/fixture1 --fixtures=/path/to/fixture2 --append --em=foo_manager
159+
php app/console doctrine:fixtures:load --fixtures=/path/to/fixture1 --fixtures=/path/to/fixture2 --append --em=foo_manager
160160
161161
Sharing Objects between Fixtures
162162
--------------------------------

cookbook/doctrine/migrations.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ the ``status`` command:
8787

8888
.. code-block:: bash
8989
90-
$ php app/console doctrine:migrations:status
90+
php app/console doctrine:migrations:status
9191
9292
== Configuration
9393
@@ -108,7 +108,7 @@ for you.
108108

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

138138
.. code-block:: bash
139139
140-
$ php app/console doctrine:migrations:status
140+
php app/console doctrine:migrations:status
141141
142142
== Configuration
143143
@@ -161,7 +161,7 @@ finally migrate when you're ready:
161161

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

265265
.. code-block:: bash
266266
267-
$ php app/console doctrine:migrations:diff
267+
php app/console doctrine:migrations:diff
268268
269269
You should see a message that a new migration class was generated based on
270270
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:
273273

274274
.. code-block:: bash
275275
276-
$ php app/console doctrine:migrations:migrate
276+
php app/console doctrine:migrations:migrate
277277
278278
The moral of the story is this: after each change you make to your Doctrine
279279
mapping information, run the ``doctrine:migrations:diff`` command to automatically

cookbook/doctrine/mongodb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ documents to and from MongoDB.
118118

119119
.. code-block:: bash
120120
121-
./app/console generate:bundle --namespace=Acme/StoreBundle
121+
php app/console generate:bundle --namespace=Acme/StoreBundle
122122
123123
Creating a Document Class
124124
~~~~~~~~~~~~~~~~~~~~~~~~~

cookbook/doctrine/reverse_engineering.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ schema and build related entity classes by executing the following two commands.
9797

9898
.. code-block:: bash
9999
100-
$ php app/console doctrine:mapping:import AcmeBlogBundle annotation
101-
$ php app/console doctrine:generate:entities AcmeBlogBundle
100+
php app/console doctrine:mapping:import AcmeBlogBundle annotation
101+
php app/console doctrine:generate:entities AcmeBlogBundle
102102
103103
The first command generates entity classes with an annotations mapping, but
104104
you can of course change the ``annotation`` argument to ``xml`` or ``yml``.

0 commit comments

Comments
 (0)