diff --git a/quick_tour/the_architecture.rst b/quick_tour/the_architecture.rst
index 3a64c5434c8..d40ef6525c1 100644
--- a/quick_tour/the_architecture.rst
+++ b/quick_tour/the_architecture.rst
@@ -27,17 +27,15 @@ The Web Directory
The web root directory is the home of all public and static files like images,
stylesheets, and JavaScript files. It is also where the front controllers
-live:
-
-.. code-block:: html+php
-
-
- handle()->send();
+ $kernel->handle(new Request())->send();
Like any front controller, ``app.php`` uses a Kernel Class, ``AppKernel``, to
bootstrap the application.
@@ -89,15 +87,16 @@ stored in the ``src/`` directory::
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array(
- 'Symfony' => $vendorDir.'/symfony/src',
- 'Application' => __DIR__,
- 'Bundle' => __DIR__,
- 'Doctrine\\Common' => $vendorDir.'/doctrine-common/lib',
- 'Doctrine\\DBAL\\Migrations' => $vendorDir.'/doctrine-migrations/lib',
- 'Doctrine\\ODM\\MongoDB' => $vendorDir.'/doctrine-mongodb/lib',
- 'Doctrine\\DBAL' => $vendorDir.'/doctrine-dbal/lib',
- 'Doctrine' => $vendorDir.'/doctrine/lib',
- 'Zend' => $vendorDir.'/zend/library',
+ 'Symfony' => $vendorDir.'/symfony/src',
+ 'Application' => __DIR__,
+ 'Bundle' => __DIR__,
+ 'Doctrine\\Common\\DataFixtures' => $vendorDir.'/doctrine-data-fixtures/lib',
+ 'Doctrine\\Common' => $vendorDir.'/doctrine-common/lib',
+ 'Doctrine\\DBAL\\Migrations' => $vendorDir.'/doctrine-migrations/lib',
+ 'Doctrine\\ODM\\MongoDB' => $vendorDir.'/doctrine-mongodb/lib',
+ 'Doctrine\\DBAL' => $vendorDir.'/doctrine-dbal/lib',
+ 'Doctrine' => $vendorDir.'/doctrine/lib',
+ 'Zend' => $vendorDir.'/zend/library',
));
$loader->registerPrefixes(array(
'Swift_' => $vendorDir.'/swiftmailer/lib/classes',
@@ -147,7 +146,7 @@ method of the ``AppKernel`` class::
//new Symfony\Bundle\TwigBundle\TwigBundle(),
// register your bundles
- new Application\AppBundle\AppBundle(),
+ new Application\HelloBundle\HelloBundle(),
);
if ($this->isDebug()) {
@@ -179,12 +178,9 @@ PHP. Have a look at the default configuration:
templating:
escaping: htmlspecialchars
#assets_version: SomeVersionScheme
- #user:
- # default_locale: fr
- # session:
- # name: SYMFONY
- # type: Native
- # lifetime: 3600
+ session:
+ default_locale: en
+ lifetime: 3600
## Twig Configuration
#twig.config:
@@ -213,11 +209,7 @@ PHP. Have a look at the default configuration:
-
+
@@ -255,14 +247,10 @@ PHP. Have a look at the default configuration:
'escaping' => 'htmlspecialchars'
#'assets_version' => "SomeVersionScheme",
),
- #'user' => array(
- # 'default_locale' => "fr",
- # 'session' => array(
- # 'name' => "SYMFONY",
- # 'type' => "Native",
- # 'lifetime' => "3600",
- # )
- #),
+ 'session' => array(
+ 'default_locale' => "en",
+ 'lifetime' => "3600",
+ ),
));
// Twig Configuration
@@ -316,7 +304,7 @@ specific configuration file:
zend.config:
logger:
priority: debug
- path: %kernel.root_dir%/logs/%kernel.environment%.log
+ path: %kernel.logs_dir%/%kernel.environment%.log
.. code-block:: xml
@@ -390,8 +378,8 @@ Using Vendors
Odds are your application will depend on third-party libraries. Those should
be stored in the ``src/vendor/`` directory. It already contains the Symfony2
-libraries, the SwiftMailer library, the Doctrine ORM, the Propel ORM, the Twig
-templating system, and a selection of the Zend Framework classes.
+libraries, the SwiftMailer library, the Doctrine ORM, the Twig templating
+system, and a selection of the Zend Framework classes.
.. index::
single: Configuration Cache
diff --git a/quick_tour/the_big_picture.rst b/quick_tour/the_big_picture.rst
index 50512a41a39..6a7fb5ce1d6 100644
--- a/quick_tour/the_big_picture.rst
+++ b/quick_tour/the_big_picture.rst
@@ -230,7 +230,6 @@ The controller is responsible for returning a representation of the resource
}
}
-
The code is pretty straightforward but let's explain this code line by line:
* *line 3*: Symfony2 takes advantage of new PHP 5.3 features and as such, all