1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Merge pull request #673 from hell0w0rd/namespace_base_commands_names

Namespace based command names
This commit is contained in:
Benjamin Eberlei 2013-05-25 21:59:32 -07:00
commit e8b3598751
6 changed files with 19 additions and 0 deletions

View File

@ -131,6 +131,20 @@ The following Commands are currently available:
update the database schema of EntityManager Storage Connection or update the database schema of EntityManager Storage Connection or
generate the SQL output. generate the SQL output.
For these commands are also available aliases:
- ``orm:convert:d1-schema`` is alias for ``orm:convert-d1-schema``.
- ``orm:convert:mapping`` is alias for ``orm:convert-mapping``.
- ``orm:generate:entities`` is alias for ``orm:generate-entities``.
- ``orm:generate:proxies`` is alias for ``orm:generate-proxies``.
- ``orm:generate:repositories`` is alias for ``orm:generate-repositories``.
.. note::
Console also supports auto completion, for example, instead of
``orm:clear-cache:query`` you can use just ``o:c:q``.
Database Schema Generation Database Schema Generation
-------------------------- --------------------------

View File

@ -102,6 +102,7 @@ class ConvertDoctrine1SchemaCommand extends Command
{ {
$this $this
->setName('orm:convert-d1-schema') ->setName('orm:convert-d1-schema')
->setAliases(array('orm:convert:d1-schema'))
->setDescription('Converts Doctrine 1.X schema into a Doctrine 2.X schema.') ->setDescription('Converts Doctrine 1.X schema into a Doctrine 2.X schema.')
->setDefinition(array( ->setDefinition(array(
new InputArgument( new InputArgument(

View File

@ -49,6 +49,7 @@ class ConvertMappingCommand extends Command
{ {
$this $this
->setName('orm:convert-mapping') ->setName('orm:convert-mapping')
->setAliases(array('orm:convert:mapping'))
->setDescription('Convert mapping information between supported formats.') ->setDescription('Convert mapping information between supported formats.')
->setDefinition(array( ->setDefinition(array(
new InputOption( new InputOption(

View File

@ -47,6 +47,7 @@ class GenerateEntitiesCommand extends Command
{ {
$this $this
->setName('orm:generate-entities') ->setName('orm:generate-entities')
->setAliases(array('orm:generate:entities'))
->setDescription('Generate entity classes and method stubs from your mapping information.') ->setDescription('Generate entity classes and method stubs from your mapping information.')
->setDefinition(array( ->setDefinition(array(
new InputOption( new InputOption(

View File

@ -45,6 +45,7 @@ class GenerateProxiesCommand extends Command
{ {
$this $this
->setName('orm:generate-proxies') ->setName('orm:generate-proxies')
->setAliases(array('orm:generate:proxies'))
->setDescription('Generates proxy classes for entity classes.') ->setDescription('Generates proxy classes for entity classes.')
->setDefinition(array( ->setDefinition(array(
new InputOption( new InputOption(

View File

@ -46,6 +46,7 @@ class GenerateRepositoriesCommand extends Command
{ {
$this $this
->setName('orm:generate-repositories') ->setName('orm:generate-repositories')
->setAliases(array('orm:generate:repositories'))
->setDescription('Generate repository classes from your mapping information.') ->setDescription('Generate repository classes from your mapping information.')
->setDefinition(array( ->setDefinition(array(
new InputOption( new InputOption(