[+FEATURE] Backport CommandController Implementation
authorMichael Klapper <development@morphodo.com>
Tue, 3 May 2011 11:09:21 +0000 (13:09 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 11 Oct 2011 09:31:01 +0000 (11:31 +0200)
commit5bd385963dee400e2973b1b12fdbf521e6bba45e
tree2a5b21378c77e77e0f9b69458342c14f92076d5a
parent66e5a2ee98e839e564147607d22c41668aac6618
[+FEATURE] Backport CommandController Implementation

Backports the FLOW3 CLI functionality to Extbase
Registers the Extbase bootstrap at the v4 cli_dispatch.phpsh

Use it from commandline like this:
cli_dispatch.phpsh extbase <command identifier> --argumentName=value

for example:
cli_dispatch.phpsh extbase help

NOTE: Unlike in FLOW3 Commands have to be registered explictly
in ext_localconf.php in order to be callable via CLI.

Resolves: #27186

Change-Id: Ia47f1d90558fbdb058767f3aa2c3e23f086a3255
32 files changed:
typo3/sysext/extbase/Classes/Command/HelpCommandController.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Configuration/AbstractConfigurationManager.php
typo3/sysext/extbase/Classes/Core/Bootstrap.php
typo3/sysext/extbase/Classes/MVC/CLI/Command.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/CLI/CommandArgumentDefinition.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/CLI/CommandManager.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/CLI/Request.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/CLI/RequestBuilder.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/CLI/RequestHandler.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/CLI/Response.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/Controller/CommandController.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/Controller/CommandControllerInterface.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/Exception/AmbiguousCommandIdentifier.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/Exception/Command.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/Exception/InvalidArgumentMixing.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/Exception/InvalidCommandIdentifier.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/Exception/NoSuchCommand.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/Exception/RequiredArgumentMissing.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/MVC/RequestInterface.php
typo3/sysext/extbase/Classes/MVC/Web/Routing/UriBuilder.php
typo3/sysext/extbase/Classes/Reflection/MethodReflection.php
typo3/sysext/extbase/Scripts/CommandLineLauncher.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Unit/MVC/CLI/CommandManagerTest.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Unit/MVC/CLI/CommandTest.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Unit/MVC/CLI/RequestBuilderTest.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Unit/MVC/CLI/RequestTest.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Unit/MVC/Controller/ActionControllerTest.php
typo3/sysext/extbase/Tests/Unit/MVC/Controller/CommandControllerTest.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Unit/MVC/Fixture/CLI/Command/MockCommandController.php [new file with mode: 0644]
typo3/sysext/extbase/ext_localconf.php
typo3/sysext/extbase/ext_tables.php
typo3/sysext/extbase/ext_typoscript_setup.txt