This commit is contained in:
Xes
2025-08-14 22:41:49 +02:00
parent 2de81ccc46
commit 8ce45119b6
39774 changed files with 4309466 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
.. index::
double: Reference; Introduction
single: Command line
Introduction
============
``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``.
The command line will generate:
* all required directories for one bundle (controller, config, doctrine, views, ...),
* the mapping and entity files from those defined in the CPB. The `SuperClass` must be prefixed by ``BaseXXXXXX``,
* the table name from the bundle name + entity name. For instance, ``blog__post``, where blog is the BlogBundle and Post the entity name.
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`` but you should probably set it to ``src``.
You can optionally define a ``--namespace`` option to the command with the namespace for the extended bundle classes and directory structure.
A special placeholder ``:vendor`` could be used and will be substitued with the bundle's `Vendor`.
By default, this is set to ``Application\:vendor``.