Skip to content

Commit a05da41

Browse files
committed
Minor corrections.
1 parent 6f2a1a3 commit a05da41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/class_loader/psr4_class_loader.rst

+3-3
Original file line numberDiff line numberDiff 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
4545
first 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``
6161
statement, since there is no autoload mechanism yet. With the
6262
:method:`Symfony\Component\ClassLoader\Psr4ClassLoader::addPrefix` call, you
6363
tell 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/

0 commit comments

Comments
 (0)