TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Core\CliBootstrap Class Reference

Static Public Member Functions

static checkEnvironmentOrDie ()
 
static initializeCliKeyOrDie ()
 

Static Protected Member Functions

static initializeCgiCompatibilityLayerOrDie ()
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! This class encapsulates cli specific bootstrap methods.

This script is internal code and subject to change. DO NOT use it in own code, or be prepared your code might break in future core versions.

Author
Christian Kuhn lolli.nosp@m.@sch.nosp@m.warzb.nosp@m.u.ch

Definition at line 25 of file CliBootstrap.php.

Member Function Documentation

◆ checkEnvironmentOrDie()

static TYPO3\CMS\Core\Core\CliBootstrap::checkEnvironmentOrDie ( )
static

Check the script is called from a cli environment.

Returns
void

Definition at line 33 of file CliBootstrap.php.

References die.

Referenced by TYPO3\CMS\Core\Tests\FunctionalTestCaseBootstrapUtility\setUpBasicTypo3Bootstrap().

◆ initializeCgiCompatibilityLayerOrDie()

static TYPO3\CMS\Core\Core\CliBootstrap::initializeCgiCompatibilityLayerOrDie ( )
staticprotected

Set up cgi sapi as de facto cli, but check no HTTP environment variables are set.

Returns
void

Definition at line 82 of file CliBootstrap.php.

◆ initializeCliKeyOrDie()

static TYPO3\CMS\Core\Core\CliBootstrap::initializeCliKeyOrDie ( )
static

Check and define cli parameters. First argument is a key that points to the script configuration. If it is not set or not valid, the script exits with an error message.

Returns
void

Definition at line 49 of file CliBootstrap.php.

References $GLOBALS, die, and TYPO3\CMS\Core\Utility\GeneralUtility\getFileAbsFileName().