TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
vendor
symfony
console
Tests
Fixtures
FooCommand.php
Go to the documentation of this file.
1
<?php
2
3
use
Symfony\Component\Console\Command\Command
;
4
use
Symfony\Component\Console\Input\InputInterface
;
5
use
Symfony\Component\Console\Output\OutputInterface
;
6
7
class
FooCommand
extends
Command
8
{
9
public
$input
;
10
public
$output
;
11
12
protected
function
configure
()
13
{
14
$this
15
->setName(
'foo:bar'
)
16
->setDescription(
'The foo:bar command'
)
17
->setAliases(array(
'afoobar'
))
18
;
19
}
20
21
protected
function
interact
(
InputInterface
$input
,
OutputInterface
$output
)
22
{
23
$output->
writeln
(
'interact called'
);
24
}
25
26
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
27
{
28
$this->input =
$input
;
29
$this->output =
$output
;
30
31
$output->
writeln
(
'called'
);
32
}
33
}
Generated on Wed Nov 11 2015 01:51:56 for TYPO3 by
1.8.3