Skip to content

Commit

Permalink
minor #3925 Fixed the indentation of two code blocks (javiereguiluz)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

Fixed the indentation of two code blocks

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets | -

Commits
-------

c8dbda9 Fixed the indentation of two code blocks
  • Loading branch information
weaverryan committed Jun 10, 2014
2 parents 350b805 + c8dbda9 commit 26d00d0
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions components/using_components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 26d00d0

Please sign in to comment.