Review main Abandoned

51496[FEATURE] Consider TYPO3_PATH_ROOT when requiring autoload.php

Claus Due CR 0 V 0 Normal +72 −5 updated 11/30/17, 20:50

Commit message

This patch changes the "frontend.php" and "backend.php"
entry points to read ENV TYPO3_PATH_ROOT if it is set.

If the ENV is set, that path gets used as base path for the
composer autoload.php file when it gets required.

The result is that the TYPO3 sources (typo3_src) can be
a symlink pointint to anywhere, which in turn allows the
package to be added as a custom "path" type repository
with the "symlink" option set to true.

Essentially, the decision about where composer autoload
resides is now configurable instead of a naive assumption.

The "cli.php" entry point requires a slightly different way,
rather than assuming/allowing TYPO3_PATH_ROOT this
particular entry point can instead inspect the "argv" of
$_SERVER and find the exact path used on CLI to call the
entry point. This allows that path to be in a symlink without
translating the symlink to its target like __DIR__ will do.

All entry points are fitted with the original assumed path
as fallback.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 6