@@ -48,42 +48,42 @@ the ``vendor/autoload.php`` file that was generated by Composer. This file
48
48
takes care of autoloading all of the libraries so that you can use them
49
49
immediately::
50
50
51
- // File: src/script.php
51
+ // File: src/script.php
52
52
53
- // update this to the path to the "vendor/" directory, relative to this file
54
- require_once '../vendor/autoload.php';
53
+ // update this to the path to the "vendor/" directory, relative to this file
54
+ require_once '../vendor/autoload.php';
55
55
56
- use Symfony\Component\Finder\Finder;
56
+ use Symfony\Component\Finder\Finder;
57
57
58
- $finder = new Finder();
59
- $finder->in('../data/');
58
+ $finder = new Finder();
59
+ $finder->in('../data/');
60
60
61
- // ...
61
+ // ...
62
62
63
63
.. tip ::
64
64
65
65
If you want to use all of the Symfony2 Components, then instead of adding
66
66
them one by one:
67
67
68
- .. code-block :: json
68
+ .. code-block :: json
69
69
70
- {
71
- "require" : {
72
- "symfony/finder" : " 2.3.*" ,
73
- "symfony/dom-crawler" : " 2.3.*" ,
74
- "symfony/css-selector" : " 2.3.*"
75
- }
70
+ {
71
+ "require" : {
72
+ "symfony/finder" : " 2.3.*" ,
73
+ "symfony/dom-crawler" : " 2.3.*" ,
74
+ "symfony/css-selector" : " 2.3.*"
76
75
}
76
+ }
77
77
78
78
you can use:
79
79
80
- .. code-block :: json
80
+ .. code-block :: json
81
81
82
- {
83
- "require" : {
84
- "symfony/symfony" : " 2.3.*"
85
- }
82
+ {
83
+ "require" : {
84
+ "symfony/symfony" : " 2.3.*"
86
85
}
86
+ }
87
87
88
88
This will include the Bundle and Bridge libraries, which you may not
89
89
actually need.
0 commit comments