| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class ListFieldCommand extends FieldCommand |
||
| 22 | { |
||
| 23 | /** @var FieldManagerInterface */ |
||
| 24 | private $fieldManager; |
||
| 25 | |||
| 26 | public function __construct( |
||
| 27 | FieldManagerInterface $fieldManager |
||
| 28 | ) { |
||
| 29 | $this->fieldManager = $fieldManager; |
||
| 30 | |||
| 31 | parent::__construct('sf:list-field'); |
||
| 32 | } |
||
| 33 | |||
| 34 | protected function configure() |
||
| 35 | { |
||
| 36 | $this |
||
| 37 | ->setDescription('Show installed fields.') |
||
| 38 | ->setHelp('This command lists all installed fields.') |
||
| 39 | ; |
||
| 40 | } |
||
| 41 | |||
| 42 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 49 | } |
||
| 50 | } |
||
| 51 | } |
||
| 52 |