Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace RD\TEST\Command;
- /* *
- * This script belongs to the FLOW3 package "RD.TEST". *
- * *
- * */
- use TYPO3\FLOW3\Annotations as FLOW3;
- /**
- * Test command controller for the RD.TEST package
- *
- * @FLOW3\Scope("singleton")
- */
- class TestCommandController extends \TYPO3\FLOW3\MVC\Controller\CommandController {
- /**
- * @FLOW3\Inject
- * @var \TYPO3\FLOW3\Session\PhpSession
- */
- protected $currentSession;
- /**
- * An example command
- *
- * The comment of this command method is also used for FLOW3's help screens. The first line should give a very short
- * summary about what the command does. Then, after an empty line, you should explain in more detail what the command
- * does. You might also give some usage example.
- *
- * It is important to document the parameters with param tags, because that information will also appear in the help
- * screen.
- *
- * @param string $optionalArgument This argument is optional
- * @return void
- */
- public function exampleCommand($optionalArgument = NULL) {
- $this->outputLine('You called the example command and class name is "%s".', array(get_class($this->currentSession)));
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement