‪TYPO3CMS  9.5
cli.php
Go to the documentation of this file.
1 #!/usr/bin/env php
2 <?php
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
20 call_user_func(function () {
21  $classLoader = require __DIR__ . '/../../../../../../vendor/autoload.php';
22  ‪\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(4, \‪TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_CLI);
23  ‪\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\‪TYPO3\CMS\Core\Console\CommandApplication::class)->run();
24 });
‪TYPO3
‪TYPO3\CMS\Core\Core\Bootstrap\init
‪static ContainerInterface init(ClassLoader $classLoader, bool $failsafe=false)
Definition: Bootstrap.php:78
‪TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\run
‪static run(int $entryPointLevel=0, int $requestType=self::REQUESTTYPE_FE)
Definition: SystemEnvironmentBuilder.php:81