From e0d70a6308bba4b20636a5d45877b869e4b5632f Mon Sep 17 00:00:00 2001 From: Yannick ROGER Date: Wed, 27 Jul 2016 21:01:39 +0200 Subject: [PATCH 1/2] Get started: updated console path for SF3 --- Resources/doc/getting_started/creating_an_admin.rst | 6 +++--- Resources/doc/getting_started/installation.rst | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Resources/doc/getting_started/creating_an_admin.rst b/Resources/doc/getting_started/creating_an_admin.rst index 8984b845a3..790ab92ea3 100644 --- a/Resources/doc/getting_started/creating_an_admin.rst +++ b/Resources/doc/getting_started/creating_an_admin.rst @@ -14,8 +14,8 @@ using these commands: .. code-block:: bash - $ php app/console doctrine:generate:entity --entity="AppBundle:Category" --fields="name:string(255)" --no-interaction - $ php app/console doctrine:generate:entity --entity="AppBundle:BlogPost" --fields="title:string(255) body:text draft:boolean" --no-interaction + $ php bin/console doctrine:generate:entity --entity="AppBundle:Category" --fields="name:string(255)" --no-interaction + $ php bin/console doctrine:generate:entity --entity="AppBundle:BlogPost" --fields="title:string(255) body:text draft:boolean" --no-interaction After this, you'll need to tweak the entities a bit: @@ -102,7 +102,7 @@ After this, create the schema for these entities: .. code-block:: bash - $ php app/console doctrine:schema:create + $ php bin/console doctrine:schema:create .. note:: diff --git a/Resources/doc/getting_started/installation.rst b/Resources/doc/getting_started/installation.rst index ecb06db609..076ab0d1f8 100644 --- a/Resources/doc/getting_started/installation.rst +++ b/Resources/doc/getting_started/installation.rst @@ -145,8 +145,8 @@ install the assets: .. code-block:: bash - $ php app/console cache:clear - $ php app/console assets:install + $ php bin/console cache:clear + $ php bin/console assets:install The Admin Interface ------------------- @@ -157,7 +157,7 @@ server, you can now visit the admin page on http://localhost:8000/admin .. note:: This tutorial assumes you are using the build-in server using the - ``php app/console server:start`` (or ``server:run``) command. + ``php bin/console server:start`` (or ``server:run``) command. .. image:: ../images/getting_started_empty_dashboard.png From 2f92cc43edbf63e8ebe0bce6a036cf53263cb9d0 Mon Sep 17 00:00:00 2001 From: Yannick ROGER Date: Wed, 27 Jul 2016 21:02:29 +0200 Subject: [PATCH 2/2] Get started: added translator service to avoid error --- Resources/doc/getting_started/installation.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Resources/doc/getting_started/installation.rst b/Resources/doc/getting_started/installation.rst index 076ab0d1f8..8f7e636002 100644 --- a/Resources/doc/getting_started/installation.rst +++ b/Resources/doc/getting_started/installation.rst @@ -137,7 +137,18 @@ You can do this by importing them in the routing configuration: resource: "@SonataAdminBundle/Resources/config/routing/sonata_admin.xml" prefix: /admin -Step 5: Preparing your Environment +Step 5: Enable the "translator" service +--------------------------------------- + +The translator service is required by SonataAdmin to display all labels properly. + +.. code-block:: yaml + + # app/config/config.yml + framework: + translator: { fallbacks: [en] } + +Step 6: Preparing your Environment ---------------------------------- As with all bundles you install, it's a good practice to clear the cache and