public/index.php we have
chdir(dirname(__DIR__)); this helps to get the project current working directory via
It looks to me that expressive can define a constant as
CWD or something else, so we can use it inside the modules, and libraries we are building.
The problem with using getcwd() inside a library is we don’t know if some library purposefully changed the path via the same chdir function.
If we agree with a constant name, I am happy to send a PR for the same to zend-expressive-skelton.