From 9a620c41347ea3720d60231fd6f3b2f5948d42b3 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 4 Jan 2015 12:45:30 +0100 Subject: [PATCH] don't show deprecated usage of Yaml::parse() --- components/class_loader/psr4_class_loader.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/class_loader/psr4_class_loader.rst b/components/class_loader/psr4_class_loader.rst index e388590310d..33915b16a9e 100644 --- a/components/class_loader/psr4_class_loader.rst +++ b/components/class_loader/psr4_class_loader.rst @@ -55,7 +55,7 @@ first need to configure the ``Psr4ClassLoader``: $loader->addPrefix('Symfony\\Component\\Yaml\\', __DIR__.'/lib/Yaml'); $loader->register(); - $data = Yaml::parse(__DIR__.'/config.yml'); + $data = Yaml::parse(file_get_contents(__DIR__.'/config.yml')); First of all, the class loader is loaded manually using a ``require`` statement, since there is no autoload mechanism yet. With the