From e28e4c1417ca41b432c8fe6e8c4c1e83fd378b5a Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 27 Feb 2011 15:43:11 +0100 Subject: [PATCH] Updated init commands --- book/page_creation.rst | 10 +++++----- book/security/acl.rst | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/book/page_creation.rst b/book/page_creation.rst index fd5ae46a660..91414e4a592 100644 --- a/book/page_creation.rst +++ b/book/page_creation.rst @@ -400,12 +400,12 @@ each of these directories in later chapters. or ``require`` statements. Instead, Symfony2 uses the namespace of a class to determine its location and automatically includes the file on your behalf the instance you need a class:: - + $loader->registerNamespaces(array( 'Sensio' => __DIR__.'/../src', // ... )); - + With this configuration, Symfony2 will look inside the ``src`` directory for any class in the ``Sensio`` namespace. For autoloading to work, the class name and path to the file must follow the same pattern: @@ -543,7 +543,7 @@ And while it doesn't do anything yet, ``MyBundle`` is now ready to be used. And as easy as this is, Symfony also provides a command-line interface for generating a basic bundle skeleton:: - ./app/console init:bundle "Sensio\MyBundle" src + ./app/console bundle:init "Sensio\MyBundle" src The bundle skeleton generates with a basic controller, template and routing resource that can be customized. We'll talk more about Symfony2's command-line @@ -716,9 +716,9 @@ call the ``prod`` front controller instead:: If you open the ``web/app.php`` file, you'll that it's configured explicitly to use the ``prod`` environment:: - + $kernel = new AppCache(new AppKernel('prod', false)); - + You can create a new front controller for a new environment by copying this file and changing ``prod`` to some other value. diff --git a/book/security/acl.rst b/book/security/acl.rst index 707666f72c6..79a14df42cf 100644 --- a/book/security/acl.rst +++ b/book/security/acl.rst @@ -63,7 +63,7 @@ First, we need to configure the connection the ACL system is supposed to use: The ACL system requires at least one Doctrine DBAL connection to be configured. However, that does not mean that you have to use Doctrine for mapping your domain objects. You can use whatever mapper you like for your - objects, be it Doctrine ORM, Mongo ODM, Propel, or raw SQL, the choice is + objects, be it Doctrine ORM, Mongo ODM, Propel, or raw SQL, the choice is yours. After the connection is configured, we have to import the database structure. @@ -71,7 +71,7 @@ Fortunately, we have a task for this. Simply run the following command: .. code-block:: text - php app/console init:acl + php app/console acl:init Getting Started ---------------