Task #85977

Deprecate @cli annotation

Added by Alexander Schnitzler 12 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Should have
Category:
Extbase
Target version:
Start date:
2018-08-25
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Sprint Focus:

Related issues

Related to TYPO3 Core - Epic #82703: Introduce doctrine/annotations to replace user defined annotations (mostly in Extbase) Closed 2017-10-08
Related to TYPO3 Core - Epic #85990: Extbase CommandControllers vs. Symfony/Console Integration New 2018-08-27
Related to TYPO3 Core - Bug #87266: Remove invalid NoSuchCommandException Closed 2018-12-22

Associated revisions

Revision c7791b01 (diff)
Added by Alexander Schnitzler 12 months ago

[TASK] Deprecate @cli annotation

Back then, the PHPDoc annotation `@cli` was added to indicate
Extbase CommandController commands to be usable on CLI only
instead of also be usable as a scheduler task.

The scheduler implementation will be refactored in TYPO3 10
and the execution of commands from the backend will vanish.
Therefore it will not be necessary any more to define if
commands can only be used on the command line or not.
In the future, all commands will only be executable
from the command line.

Releases: master
Resolves: #85977
Change-Id: I52330517b51c5c747177cab55e34a721a0df5f67
Reviewed-on: https://review.typo3.org/58037
Tested-by: TYPO3com <>
Reviewed-by: Wouter Wolters <>
Tested-by: Wouter Wolters <>
Reviewed-by: Andreas Fernandez <>
Tested-by: Andreas Fernandez <>

Revision 7a594155 (diff)
Added by Mathias Brodala 12 months ago

Revert "[TASK] Deprecate @cli annotation"

We do not have a replacement for TYPO3v9 so we cannot deprecate this annotation yet.

This reverts commit c7791b01fe420cd8ed7298635ba414d1b5ea2638.

Change-Id: Ie7228d6e13a5647698f2a5c26ebe9fd56de80aac
Resolves: #85988
Related: #85977
Reviewed-on: https://review.typo3.org/58044
Tested-by: TYPO3com <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

Revision 345c37af (diff)
Added by Alexander Schnitzler 12 months ago

[TASK] Deprecate Extbase CommandControllers and @cli annotation

Back then, the PHPDoc annotation `@cli` was added to indicate
Extbase CommandController commands to be usable on CLI only
instead of also be usable as a scheduler task.

The concept of Extbase Command Controllers has been superseded
with symfony/console and its integration into TYPO3 CLI in TYPO3 v8.0,
and contains all features necessary to build commands of any kind
of complexity.

As a matter of documentation, it is however crucial to document
how to instantiate Extbase from CLI to migrate easily from Extbase CLI
to symfony/console.

Releases: master
Resolves: #85977
Change-Id: Id87c2ce300e01bf649bd1c2219aa17b8437bda83
Reviewed-on: https://review.typo3.org/58064
Tested-by: TYPO3com <>
Reviewed-by: Wouter Wolters <>
Reviewed-by: Frans Saris <>
Tested-by: Frans Saris <>
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>

Revision e16883c1 (diff)
Added by Christian Kuhn 8 months ago

[BUGFIX] Remove invalid NoSuchCommandException

The NoSuchCommandExceptions has been forgotton
to be removed along with the CommandException
it extends from. It is unused and can be dropped.

Resolves: #87266
Related: #85977
Related: #87246
Releases: master
Change-Id: Ie83695be3f688ad0e52a4fd54918df2b167f6560
Reviewed-on: https://review.typo3.org/59268
Reviewed-by: Alexander Schnitzler <>
Tested-by: Alexander Schnitzler <>
Tested-by: TYPO3com <>
Reviewed-by: Oliver Klee <>
Reviewed-by: Anja Leichsenring <>
Tested-by: Anja Leichsenring <>

History

#1 Updated by Alexander Schnitzler 12 months ago

  • Related to Epic #82703: Introduce doctrine/annotations to replace user defined annotations (mostly in Extbase) added

#2 Updated by Alexander Schnitzler 12 months ago

  • Subject changed from Deprecate @cli and \TYPO3\CMS\Extbase\Mvc\Cli\Command->isCliOnly to Deprecate @cli annotation

#3 Updated by Gerrit Code Review 12 months ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58037

#4 Updated by Gerrit Code Review 12 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58037

#5 Updated by Anonymous 12 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#6 Updated by Helmut Hummel 12 months ago

  • Status changed from Resolved to New
  • % Done changed from 100 to 0

#7 Updated by Benni Mack 12 months ago

  • Related to Epic #85990: Extbase CommandControllers vs. Symfony/Console Integration added

#8 Updated by Gerrit Code Review 12 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58064

#9 Updated by Gerrit Code Review 12 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58064

#10 Updated by Gerrit Code Review 12 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58064

#11 Updated by Gerrit Code Review 12 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58064

#12 Updated by Gerrit Code Review 12 months ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58064

#13 Updated by Gerrit Code Review 12 months ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58064

#14 Updated by Anonymous 12 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#15 Updated by Benni Mack 11 months ago

  • Status changed from Resolved to Closed

#16 Updated by Christian Kuhn 8 months ago

  • Related to Bug #87266: Remove invalid NoSuchCommandException added

Also available in: Atom PDF