@@ -421,8 +421,8 @@ Add a Touch of Symfony2
421
421
~~~~~~~~~~~~~~~~~~~~~~~
422
422
423
423
Symfony2 to the rescue. Before actually using Symfony2, you need to download
424
- it. This can be done by using composer , which takes care of downloading the
425
- correct version and all it's dependencies and provides an autoloader. An
424
+ it. This can be done by using Composer , which takes care of downloading the
425
+ correct version and all its dependencies and provides an autoloader. An
426
426
autoloader is a tool that makes it possible to start using PHP classes
427
427
without explicitly including the file containing the class.
428
428
@@ -440,9 +440,16 @@ content:
440
440
}
441
441
}
442
442
443
- After installing your dependencies, composer has generated ``vendor/autoload.php ``,
444
- which takes care to include all files from the symfony framework as well as
445
- the files mentioned in the autoload section of your composer.json.
443
+ Next, `download Composer `_ and then run the following command, which will download Symfony
444
+ into a vendor/ directory:
445
+
446
+ .. code-block :: bash
447
+
448
+ $ php composer.phar install
449
+
450
+ Beside downloading your dependencies, Composer generates a ``vendor/autoload.php `` file,
451
+ which takes care of autoloading for all the files in the Symfony Framework as well as
452
+ the files mentioned in the autoload section of your `composer.json `.
446
453
447
454
Core to Symfony's philosophy is the idea that an application's main job is
448
455
to interpret each request and return a response. To this end, Symfony2 provides
@@ -735,7 +742,7 @@ Learn more from the Cookbook
735
742
* :doc: `/cookbook/controller/service `
736
743
737
744
.. _`Doctrine` : http://www.doctrine-project.org
738
- .. _`download Symfony ` : http://symfony.com /download
745
+ .. _`download Composer ` : http://getcomposer.org /download/
739
746
.. _`Routing` : https://github.com/symfony/Routing
740
747
.. _`Templating` : https://github.com/symfony/Templating
741
748
.. _`KnpBundles.com` : http://knpbundles.com/
0 commit comments