File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ The directory structure will look like this:
39
39
Yaml.php
40
40
...
41
41
config.yml
42
- test .php
42
+ demo .php
43
43
44
44
In ``demo.php `` you are going to parse the ``config.yml `` file. To do that, you
45
45
first need to configure the ``Psr4ClassLoader ``:
@@ -55,13 +55,13 @@ first need to configure the ``Psr4ClassLoader``:
55
55
$loader->addPrefix('Symfony\\Component\\Yaml\\', __DIR__.'/lib/Yaml');
56
56
$loader->register();
57
57
58
- $data = Yaml::parse(__DIR__.'/demo .yml');
58
+ $data = Yaml::parse(__DIR__.'/config .yml');
59
59
60
60
First of all, the class loader is loaded manually using a ``require ``
61
61
statement, since there is no autoload mechanism yet. With the
62
62
:method: `Symfony\C omponent\C lassLoader\P sr4ClassLoader::addPrefix ` call, you
63
63
tell the class loader where to look for classes with the
64
64
``Symfony\Component\Yaml\ `` namespace prefix. After registering the autoloader,
65
- the Yaml component is ready to use .
65
+ the Yaml component is ready to be used .
66
66
67
67
.. _PSR-4 : http://www.php-fig.org/psr/psr-4/
You can’t perform that action at this time.
0 commit comments