When using Symfony/Yaml::parse the input needs to be a string containing all the YAML. This means that just inserting the filepath is not working anymore.
Solution:
Change every Yaml::parse call from:
<?php
$source = "{$this->path}/{$this->id}.yml";
$this->data = Yaml::parse($source);
?>To:
<?php
$source = "{$this->path}/{$this->id}.yml";
$content = file_get_contents($source);
$this->data = Yaml::parse($content);
?>| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2923104-2.patch | 925 bytes | jaapjan |
Comments
Comment #2
jaapjan commentedSee attached patch, this should solve the issue for symfony/yaml:2x and symfony/yaml:3x.
Comment #3
jaapjan commentedComment #4
kedramonTested, works good!
Comment #5
nielsvandermolen commentedThanks for the work included the patch in the new release.
https://www.drupal.org/project/kpi_analytics/releases/8.x-1.0-alpha2