Skip to content

Commit d8e8d75

Browse files
committed
bug #4756 [Components][Config] don't show deprecated usage of Yaml::parse() (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [Components][Config] don't show deprecated usage of Yaml::parse() | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | Commits ------- 16c23e7 don't show deprecated usage of Yaml::parse()
2 parents 4e880c1 + 16c23e7 commit d8e8d75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/config/definition.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ Otherwise the result is a clean array of configuration values::
576576
use Symfony\Component\Config\Definition\Processor;
577577
use Acme\DatabaseConfiguration;
578578

579-
$config1 = Yaml::parse(__DIR__.'/src/Matthias/config/config.yml');
580-
$config2 = Yaml::parse(__DIR__.'/src/Matthias/config/config_extra.yml');
579+
$config1 = Yaml::parse(file_get_contents(__DIR__.'/src/Matthias/config/config.yml'));
580+
$config2 = Yaml::parse(file_get_contents(__DIR__.'/src/Matthias/config/config_extra.yml'));
581581

582582
$configs = array($config1, $config2);
583583

components/config/resources.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class, which allows for recursively importing other resources::
3939
{
4040
public function load($resource, $type = null)
4141
{
42-
$configValues = Yaml::parse($resource);
42+
$configValues = Yaml::parse(file_get_contents($resource));
4343

4444
// ... handle the config values
4545

0 commit comments

Comments
 (0)