From c8dbda9458bf3f0a1964864297fe63c5675f5301 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 10 Jun 2014 09:40:45 +0200 Subject: [PATCH] Fixed the indentation of two code blocks --- components/using_components.rst | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/components/using_components.rst b/components/using_components.rst index 4bdb6c106c0..ae0aa6a4716 100644 --- a/components/using_components.rst +++ b/components/using_components.rst @@ -48,42 +48,42 @@ the ``vendor/autoload.php`` file that was generated by Composer. This file takes care of autoloading all of the libraries so that you can use them immediately:: - // File: src/script.php + // File: src/script.php - // update this to the path to the "vendor/" directory, relative to this file - require_once '../vendor/autoload.php'; + // update this to the path to the "vendor/" directory, relative to this file + require_once '../vendor/autoload.php'; - use Symfony\Component\Finder\Finder; + use Symfony\Component\Finder\Finder; - $finder = new Finder(); - $finder->in('../data/'); + $finder = new Finder(); + $finder->in('../data/'); - // ... + // ... .. tip:: If you want to use all of the Symfony2 Components, then instead of adding them one by one: - .. code-block:: json + .. code-block:: json - { - "require": { - "symfony/finder": "2.3.*", - "symfony/dom-crawler": "2.3.*", - "symfony/css-selector": "2.3.*" - } + { + "require": { + "symfony/finder": "2.3.*", + "symfony/dom-crawler": "2.3.*", + "symfony/css-selector": "2.3.*" } + } you can use: - .. code-block:: json + .. code-block:: json - { - "require": { - "symfony/symfony": "2.3.*" - } + { + "require": { + "symfony/symfony": "2.3.*" } + } This will include the Bundle and Bridge libraries, which you may not actually need.