Feature #43082

Add CLI support for scaffolding models, views, controller

Added by Ingo Pfennigstorf over 2 years ago. Updated 7 months ago.

Status:Needs Feedback Start date:2012-11-18
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
PHP Version: Complexity:
Has patch:No

Description

Add a cli mechanism to quickly generate code scaffolds on the command line.

Some examples on how it could be used:

Generate a model


php typo3/cli_dispatch.phpsh extbase:generate model car wheels:int seats:int manufacturer:string

This generates:

  • A model class Car.php with the provided properties and types
  • A TCA definition

Generate a Controller


php typo3/cli_dispatch.phpsh extbase:generate controller car index list show

This generates:

  • A controller named CarController.php with the actions indexAction, listAction, showAction
  • (Maybe) an entry in ext_localconf.php as allowed controller / action combination
  • Html files Index.html, List.html, Show.html in Resources/Private/Templates/Car/

Todos and remarks

The cli actions may be named after TYPO3 Flow conventions and maybe have the same featureset.
The generated code is really very basic, just dumb files without getting too complex, so good defaults have to be found regarding the models and class inheritance of them (VO, AE, ...)

History

#1 Updated by Ingo Pfennigstorf over 2 years ago

  • Target version set to Extbase 6.1

#2 Updated by Robert Weißgraeber over 2 years ago

  • Target version changed from Extbase 6.1 to Extbase 6.2

#3 Updated by Alexander Schnitzler over 2 years ago

  • Status changed from New to On Hold

#4 Updated by Anja Leichsenring about 2 years ago

  • Target version changed from Extbase 6.2 to Extbase 6.3

#5 Updated by Alexander Opitz 11 months ago

Hi,

was this issue fixed or does it still exists?

#6 Updated by Anja Leichsenring 11 months ago

  • Status changed from On Hold to New

#7 Updated by Alexander Opitz 11 months ago

  • Status changed from New to Needs Feedback

#8 Updated by Ingo Pfennigstorf 11 months ago

Not fixed, still exists. but may first be done in Flow as extbase is only some kind of backport.

#9 Updated by Alexander Opitz 11 months ago

  • Project changed from Extbase MVC Framework to TYPO3.Flow

#10 Updated by Michael Stucki 7 months ago

  • Category deleted (Extbase: Command)
  • Target version deleted (Extbase 6.3)

#11 Updated by Michael Stucki 7 months ago

FYI: On request of the CMS team I have archived the "Extbase" project in Forge (https://forge.typo3.org/projects/typo3v4-mvc). This issue referred to a version of the Extbase project, so I had to remove it.

Also available in: Atom PDF