Bug #46073

Scripts::executeCommand must be usable outsite of TYPO3.Flow

Added by Dominique Feyer over 6 years ago. Updated over 6 years ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-03-06
Due date:
% Done:

0%

PHP Version:
Has patch:
No
Complexity:

Description

On line 546:

        $subRequestEnvironmentVariables = array(
            'FLOW_ROOTPATH' => FLOW_PATH_ROOT,
            'FLOW_CONTEXT' => $settings['core']['context']
        );

$settings['core']['context'] can be non existant in the context of other package (other than TYPO3.Flow)

Those line solve the issue:

        if (!isset($settings['core']['context']) && isset($settings['TYPO3']['Flow']) && is_array($settings['TYPO3']['Flow'])) {
            $settings = $settings['TYPO3']['Flow'];
        }

Patch is coming

History

#1 Updated by Gerrit Code Review over 6 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18759

Also available in: Atom PDF