Skip to content

Commit 11149f4

Browse files
committed
[KnpU] Making common 3.0 changes (e.g. app/console -> bin/console)
1 parent aa788ed commit 11149f4

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

doctrine/associations.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ the class for you.
1414

1515
.. code-block:: bash
1616
17-
$ php app/console doctrine:generate:entity --no-interaction \
17+
$ php bin/console doctrine:generate:entity --no-interaction \
1818
--entity="AppBundle:Category" \
1919
--fields="name:string(255)"
2020
@@ -188,7 +188,7 @@ classes, tell Doctrine to generate the missing getter and setter methods for you
188188

189189
.. code-block:: bash
190190
191-
$ php app/console doctrine:generate:entities AppBundle
191+
$ php bin/console doctrine:generate:entities AppBundle
192192
193193
Ignore the Doctrine metadata for a moment. You now have two classes - ``Product``
194194
and ``Category``, with a natural many-to-one relationship. The ``Product``
@@ -219,7 +219,7 @@ table, the new ``product.category_id`` column, and the new foreign key:
219219

220220
.. code-block:: bash
221221
222-
$ php app/console doctrine:schema:update --force
222+
$ php bin/console doctrine:schema:update --force
223223
224224
Saving Related Entities
225225
-----------------------

doctrine/repository.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ and setter methods:
5959

6060
.. code-block:: bash
6161
62-
$ php app/console doctrine:generate:entities AppBundle
62+
$ php bin/console doctrine:generate:entities AppBundle
6363
6464
.. tip::
6565

logging.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ The configuration for *where* logs are stored lives in the specific
3737
:doc:`environment </configuration/environments>` configuration files: ``config_dev.yml``
3838
and ``config_prod.yml``.
3939

40-
By default, log entries are written to the ``app/logs/dev.log`` file when you're in
41-
the ``dev`` environment. In the ``prod`` environment, logs are written to ``app/logs/prod.log``,
40+
By default, log entries are written to the ``var/logs/dev.log`` file when you're in
41+
the ``dev`` environment. In the ``prod`` environment, logs are written to ``var/logs/prod.log``,
4242
but *only* during a request where an error or high-priority log entry was made
4343
(i.e. ``error()`` , ``critical()``, ``alert()`` or ``emergency()``).
4444

@@ -73,7 +73,7 @@ to write logs using the :phpfunction:`syslog` function:
7373
# this "file_log" key could be anything
7474
file_log:
7575
type: stream
76-
# log to app/logs/(environment).log
76+
# log to var/logs/(environment).log
7777
path: "%kernel.logs_dir%/%kernel.environment%.log"
7878
# log *all* messages (debug is lowest level)
7979
level: debug

security/security_checker.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ security vulnerability in your installed dependencies:
1111

1212
.. code-block:: bash
1313
14-
$ php app/console security:check
14+
$ php bin/console security:check
1515
1616
A good security practice is to execute this command regularly to be able to
1717
update or replace compromised dependencies as soon as possible. Internally,

setup.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ a matter of browsing the project directory and executing this command:
138138
.. code-block:: bash
139139
140140
$ cd my_project_name/
141-
$ php app/console server:run
141+
$ php bin/console server:run
142142
143143
Then, open your browser and access the ``http://localhost:8000/`` URL to see the
144144
Welcome Page of Symfony:
@@ -304,7 +304,7 @@ install the Symfony Demo application anywhere in your system executing the
304304
$ symfony demo
305305
306306
Once downloaded, enter into the ``symfony_demo/`` directory, run the PHP's
307-
built-in web server (``php app/console server:run``) and access to the
307+
built-in web server (``php bin/console server:run``) and access to the
308308
``http://localhost:8000`` URL to start using the Symfony Demo application.
309309

310310
.. _installing-a-symfony2-distribution:

templating/overriding.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ to create it). You're now free to customize the template.
4040
.. caution::
4141

4242
If you add a template in a new location, you *may* need to clear your
43-
cache (``php app/console cache:clear``), even if you are in debug mode.
43+
cache (``php bin/console cache:clear``), even if you are in debug mode.
4444

4545
This logic also applies to base bundle templates. Suppose also that each
4646
template in AcmeBlogBundle inherits from a base template called

templating/syntax.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ console command:
1313
.. code-block:: bash
1414
1515
# You can check by filename:
16-
$ php app/console lint:twig app/Resources/views/article/recent_list.html.twig
16+
$ php bin/console lint:twig app/Resources/views/article/recent_list.html.twig
1717
1818
# or by directory:
19-
$ php app/console lint:twig app/Resources/views
19+
$ php bin/console lint:twig app/Resources/views

0 commit comments

Comments
 (0)