SonataEasyExtendsBundle功能包:概述

SonataEasyExtendsBundle is a prototype for generating a valid bundle structure from a Vendor Bundle. The tool is started with the simple command line: sonata:easy-extends:generate.

SonataEasyExtendsBundle 可以從供應商所提供的功能包中生成一個合法的功能包結構原型。這個工具從一個簡單的命令行開始:sonata:easy-extends:generate

The command will generate:

該命令可以生成

  • all required directories for one bundle (controller, config, doctrine, views, ...)

  • 功能包所要求的全部目錄(如生成controller、config、doctrine和views目錄等等)

  • the mapping and entity files from those defined in the CPB. The SuperClass must be prefixed by BaseXXXXXX.

  • 在CPB中定義的映射文件和實體文件。超級類必須添加Base前綴,如BaseXXXXXX

  • the table name from the bundle name + entity name. (blog__post, where blog is the BlogBundle and Post the entity name)

  • 數據表名由功能包名+實體名組合而成(如blog__post,該表名是由BlogBundle功能包名的Blog+Post實體名組合而成

You can optionally define a --dest option to the command with the target directory for the extended bundle creation. By default, this is set to app (you should probably set it to src).

您可以定義選項 --dest 以指定擴展功能包的生成目錄。該目錄默認是app(當然您也可以將其設置爲src)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章