We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import() with PHP files uses the include path because require is used. It would be logical to also use the include path when importing YAML files.
import()
require
It can be achieved with the use_include_path argument of file_get_contents():
use_include_path
file_get_contents()
--- a/src/Importer/Importer.php +++ b/src/Importer/Importer.php @@ -71,7 +71,7 @@ class Importer }); } else if (preg_match('/\.ya?ml$/i', $path)) { self::$recipeFilename = basename($path); - self::$recipeSource = file_get_contents($path); + self::$recipeSource = file_get_contents($path, true); $root = array_filter(Yaml::parse(self::$recipeSource), static function (string $key) { return substr($key, 0, 1) !== '.'; }, ARRAY_FILTER_USE_KEY);
The text was updated successfully, but these errors were encountered:
PR: #3377
Sorry, something went wrong.
Merged.
No branches or pull requests
import()
with PHP files uses the include path becauserequire
is used. It would be logical to also use the include path when importing YAML files.It can be achieved with the
use_include_path
argument offile_get_contents()
:The text was updated successfully, but these errors were encountered: