File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 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:
3939 Yaml.php
4040 ...
4141 config.yml
42- test .php
42+ demo .php
4343
4444 In ``demo.php `` you are going to parse the ``config.yml `` file. To do that, you
4545first need to configure the ``Psr4ClassLoader ``:
@@ -55,13 +55,13 @@ first need to configure the ``Psr4ClassLoader``:
5555 $loader->addPrefix('Symfony\\Component\\Yaml\\', __DIR__.'/lib/Yaml');
5656 $loader->register();
5757
58- $data = Yaml::parse(__DIR__.'/demo .yml');
58+ $data = Yaml::parse(__DIR__.'/config .yml');
5959
6060 First of all, the class loader is loaded manually using a ``require ``
6161statement, since there is no autoload mechanism yet. With the
6262:method: `Symfony\C omponent\C lassLoader\P sr4ClassLoader::addPrefix ` call, you
6363tell the class loader where to look for classes with the
6464``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 .
6666
6767.. _PSR-4 : http://www.php-fig.org/psr/psr-4/
You can’t perform that action at this time.
0 commit comments