Skip to content

Commit 9a620c4

Browse files
committed
don't show deprecated usage of Yaml::parse()
1 parent 9f82c6f commit 9a620c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/class_loader/psr4_class_loader.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ first need to configure the ``Psr4ClassLoader``:
5555
$loader->addPrefix('Symfony\\Component\\Yaml\\', __DIR__.'/lib/Yaml');
5656
$loader->register();
5757
58-
$data = Yaml::parse(__DIR__.'/config.yml');
58+
$data = Yaml::parse(file_get_contents(__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

0 commit comments

Comments
 (0)