Feature request: make fs() context aware
https://castor.jolicode.com/going-further/helpers/filesystem/#filesystem
Is there a way to make fs() context aware
run('bin/console make:controller App -n");
$phpSource = fs()->readFile(context()->workingDirectory . '/src/Controller/AppController.php');
# Preferred:
$phpSource = fs()->readFile('/src/Controller/AppController.php');
What's the best way to handle this situation, without prepending the working directory to the path?
This is not possible at the moment. We like the idea but - as we discussed it internally - we concluded that it would probably require some internal hacks. We might eventually make this possible in the future, but no ETA to expect for now.
Thanks for your consideration. I can understand how complicated it might be!
Let us keep this one open. It's a good idea. Thanks for the discussion 🤗