Issue Bug Closed

#88088cli binary is stored in wrong path

Helmut Hummel 04/05/19, 10:37 updated 05/07/19, 12:10

Description

With the change in #86513, the cli binary is now automatically generated on composer install.

Unfortunately it is written to a wrong path.
Currently we distinguish 3 paths within TYPO3 in Composer mode.

  1. TYPO3_PATH_COMPOSER_ROOT This is the path the root composer.json of the project is located
  2. TYPO3_PATH_ROOT This is TYPO3 base path formerly exposed by the constant PATH_site, now accessible with Environment::getProjectPath()
  3. TYPO3_PATH_WEB This is the path to the publicly available document root, accessible with Environment::getPublicPath()

In default TYPO3 installations, even in composer mode the two latter are the same. However with the goal of at some point being able to have a directory with only public assets,
it is important to distinguish them in the code. It becomes important already now, when using helhum/typo3-secure-web, which exposes TYPO3_PATH_WEB to a different directory and
publishes all public assets to it.
TYPO3 currently writes the cli binary to the public folder then, which should be changed

Reviews 2