Skip to content

Commit 36f2e1f

Browse files
committed
bug #4757 [Components][ClassLoader] don't show deprecated usage of Yaml::parse() (xabbuh)
This PR was merged into the 2.5 branch. Discussion ---------- [Components][ClassLoader] don't show deprecated usage of Yaml::parse() | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.5+ | Fixed tickets | Commits ------- 9a620c4 don't show deprecated usage of Yaml::parse()
2 parents 3f8cb31 + 9a620c4 commit 36f2e1f

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)