1 | <?php |
||
19 | class tx_t3deploy_dispatch extends \TYPO3\CMS\Core\Controller\CommandLineController { |
||
20 | const ExtKey = 't3deploy'; |
||
|
|||
21 | const Mask_ClassName = 'tx_t3deploy_%sController'; |
||
22 | const Mask_ClassFile = 'Classes/class.tx_t3deploy_%sController.php'; |
||
23 | const Mask_Action = '%sAction'; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $classInstances = array(); |
||
29 | |||
30 | /** |
||
31 | * Creates this object. |
||
32 | */ |
||
33 | public function __construct() { |
||
46 | |||
47 | /** |
||
48 | * Sets the CLI arguments. |
||
49 | * |
||
50 | * @param array $arguments |
||
51 | * @return void |
||
52 | */ |
||
53 | public function setCliArguments(array $arguments) { |
||
56 | |||
57 | /** |
||
58 | * Gets or generates an instance of the given class name. |
||
59 | * |
||
60 | * @param string $className |
||
61 | * @return object |
||
62 | */ |
||
63 | public function getClassInstance($className) { |
||
69 | |||
70 | /** |
||
71 | * Sets an instance for the given class name. |
||
72 | * |
||
73 | * @param string $className |
||
74 | * @param object $classInstance |
||
75 | * @return void |
||
76 | */ |
||
77 | public function setClassInstance($className, $classInstance) { |
||
80 | |||
81 | /** |
||
82 | * Dispatches the requested actions to the accordant controller. |
||
83 | * |
||
84 | * @return mixed |
||
85 | * @throws Exception |
||
86 | */ |
||
87 | public function dispatch() { |
||
118 | |||
119 | /** |
||
120 | * Sets the CLI options for help. |
||
121 | * |
||
122 | * @return void |
||
123 | */ |
||
124 | protected function setCliOptions() { |
||
137 | } |
||
138 |