3.3 Command Line Interface (Console)

Beschreibung

TYPO3 CD 2020 (zweite Auflage) Quiz am 3.3 Command Line Interface (Console), erstellt von Pascal Bartl am 09/04/2021.
Pascal Bartl
Quiz von Pascal Bartl, aktualisiert more than 1 year ago
Pascal Bartl
Erstellt von Pascal Bartl vor mehr als 3 Jahre
5
0

Zusammenfassung der Ressource

Frage 1

Frage
What is required to implement a TYPO3 CLI command? (2)
Antworten
  • A CommandController must be registered in the file ext_localconf.php
  • A Symfony Command needs to be registered in the file Configuration/Commands.php
  • The system extension EXT:console must be enabled
  • TYPO3 must be installed using composer
  • The class should extend Symfony\Component\Console\Command\Command

Frage 2

Frage
How do you implement console commands in a custom TYPO3 extension? (2)
Antworten
  • No existing packages or APIs are available. CLI commands need to be implemented from scratch
  • By using the Symfony Console that is shipped with the TYPO3 core by default
  • By using the Drupal Command Controller that is shipped with the TYPO3 core by default.
  • The file Configuration/Commands.php needs to be added to the extension
  • By setting the property cli in file composer.json

Frage 3

Frage
Which statements about console commands and the TYPO3 Scheduler are correct? (2)
Antworten
  • Console commands are only available in the Scheduler if the TYPO3 instance has been set up using Composer
  • Integrators can set arguments in the Scheduler that are passed to the console command
  • Integrators can set options in the Scheduler that are passed to the console command
  • You can configure if a console command is executable via the Scheduler or not

Frage 4

Frage
How do you prevent console commands in your extension from being executed in the Scheduler? (1)
Antworten
  • By adding the annotation @notschedulable to the command class
  • By setting the property schedulable to false in the command class
  • By setting the flag schedulable to false in the file Configuration/Commands.php
  • By setting the flag schedulable to false in the TCA file scheduler.php
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Der Stephansdom
Karin Wanke
Blut
Paula <3
IKA-Theoriefragen Serie 19 (15 Fragen)
IKA ON ICT GmbH
VOKABELN- Deutsch-Englisch
Helene Hanna
Genetik Quiz
Laura Overhoff
Einführung in die Forschungsmethoden Kompakt
Angelina Idt
U12 (Print) Ausschießen
Lena A.
Vetie - Tierzucht & Genetik - T I
Fioras Hu
Vetie Para Morphologie Helminthen
Kristin E