You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: file_get_contents(vfs:/twig_dir/test.twig): failed to open stream: Invalid argument in /path/to/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 131
<?php
require_once 'vendor/autoload.php';
use org\bovigo\vfs\vfsStream;
vfsStream::setup('twig_dir');
$twig_dir = vfsStream::url('twig_dir');
file_put_contents($twig_dir.'/test.twig', '<h1>test</h1>');
$loader = new \Twig_Loader_Filesystem($twig_dir);
$twig = new \Twig_Environment($loader);
echo $twig->render('test.twig');
this code, twig 1.24.2 OK, twig 1.26.0 NG
The path of the URL format(ex: vfs://path/to/test.twig) is not available, is specifications?
The text was updated successfully, but these errors were encountered:
This PR was merged into the 1.x branch.
Discussion
----------
made it possible to store templates with vfsStream
closes#2166
Commits
-------
4d60758 made it possible to store templates with vfsStream
I'm using vfsStream.
https://github.com/mikey179/vfsStream
from twig 1.26.0, php warning occurs:
Warning: file_get_contents(vfs:/twig_dir/test.twig): failed to open stream: Invalid argument in /path/to/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 131
this code, twig 1.24.2 OK, twig 1.26.0 NG
The path of the URL format(ex: vfs://path/to/test.twig) is not available, is specifications?
The text was updated successfully, but these errors were encountered: