Composer plugin that ensures DOCUMENT_ROOT is static and stable during one request, intended for symlink based deployments.
This package acts as composer plugin in order to automatically patch
$_SERVER['SCRIPT_FILENAME']to their realpath
so that they do not contain symlinks.
That is to ensure that they are static and stable. That means we want their
destination to not change during one request. That would happen when they
contain symlinks which may change during one request due to a deployment.
composer require bnf/static-docroot
The behavior of this plugin can be influenced by configuration in the
section of the root
You can specify a relative path from the base directory, where the public
document root should be located.
The default value is derived from
extra|typo3/cms|web-dir or if that is
"web" as last resort.
That means if you have already configured the
you do not need to add the
Note for TYPO3 8.7: This package is not needed as of TYPO3 8.7 LTS.
https://review.typo3.org/#/c/52295/ fixed TYPO3 to base
path calculations on
__DIR__ and thus does effectively the
same as this package.
You might still need this package if you have a (bad) extension
$_SERVER['DOCUMENT_ROOT'] instead of