8000 [DoctrineBundle] harmonized commands documentation by changing ./app/… · ajitomatix/symfony@ec9c0aa · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit ec9c0aa

Browse files
author
Hugo Hamon
committed
[DoctrineBundle] harmonized commands documentation by changing ./app/console to php app/console.
1 parent 1c082b8 commit ec9c0aa

15 files changed

+41
-41
lines changed

src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ protected function configure()
3434
The <info>doctrine:database:create</info> command creates the default
3535
connections database:
3636
37-
<info>./app/console doctrine:database:create</info>
37+
<info>php app/console doctrine:database:create</info>
3838
3939
You can also optionally specify the name of a connection to create the
4040
database for:
4141
42-
<info>./app/console doctrine:database:create --connection=default</info>
42+
<info>php app/console doctrine:database:create --connection=default</info>
4343
EOT
4444
);
4545
}

src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ protected function configure()
3434
The <info>doctrine:database:drop</info> command drops the default connections
3535
database:
3636
37-
<info>./app/console doctrine:database:drop</info>
37+
<info>php app/console doctrine:database:drop</info>
3838
3939
The --force parameter has to be used to actually drop the database.
4040
4141
You can also optionally specify the name of a connection to drop the database
4242
for:
4343
44-
<info>./app/console doctrine:database:drop --connection=default</info>
44+
<info>php app/console doctrine:database:drop --connection=default</info>
4545
4646
<error>Be careful: All data in a given database will be lost when executing
4747
this command.</error>

src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,27 @@ protected function configure()
4343
4444
* To a bundle:
4545
46-
<info>./app/console doctrine:generate:entities MyCustomBundle</info>
46+
<info>php app/console doctrine:generate:entities MyCustomBundle</info>
4747
4848
* To a single entity:
4949
50-
<info>./app/console doctrine:generate:entities MyCustomBundle:User</info>
51-
<info>./app/console doctrine:generate:entities MyCustomBundle/Entity/User</info>
50+
<info>php app/console doctrine:generate:entities MyCustomBundle:User</info>
51+
<info>php app/console doctrine:generate:entities MyCustomBundle/Entity/User</info>
5252
5353
* To a namespace
5454
55-
<info>./app/console doctrine:generate:entities MyCustomBundle/Entity</info>
55+
<info>php app/console doctrine:generate:entities MyCustomBundle/Entity</info>
5656
5757
If the entities are not stored in a bundle, and if the classes do not exist,
5858
the command has no way to guess where they should be generated. In this case,
5959
you must provide the <comment>--path</comment> option:
6060
61-
<info>./app/console doctrine:generate:entities Blog/Entity --path=src/</info>
61+
<info>php app/console doctrine:generate:entities Blog/Entity --path=src/</info>
6262
6363
You should provide the <comment>--no-backup</comment> option if you don't mind to back up files
6464
before to generate entities:
6565
66-
<info>./app/console doctrine:generate:entities Blog/Entity --no-backup</info>
66+
<info>php app/console doctrine:generate:entities Blog/Entity --no-backup</info>
6767
6868
<error>Important:</error> Even if you specified Inheritance options in your
6969
XML or YAML Mapping files the generator cannot generate the base and

src/Symfony/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,22 @@ protected function configure()
4242
The <info>doctrine:mapping:import</info> command imports mapping information
4343
from an existing database:
4444
45-
<info>./app/console doctrine:mapping:import "MyCustomBundle" xml</info>
45+
<info>php app/console doctrine:mapping:import "MyCustomBundle" xml</info>
4646
4747
You can also optionally specify which entity manager to import from with the
4848
<info>--em</info> option:
4949
50-
<info>./app/console doctrine:mapping:import "MyCustomBundle" xml --em=default</info>
50+
<info>php app/console doctrine:mapping:import "MyCustomBundle" xml --em=default</info>
5151
5252
If you don't want to map every entity that can be found in the database, use the
5353
<info>--filter</info> option. It will try to match the targeted mapped entity with the
5454
provided pattern string.
5555
56-
<info>./app/console doctrine:mapping:import "MyCustomBundle" xml --filter=MyMatchedEntity</info>
56+
<info>php app/console doctrine:mapping:import "MyCustomBundle" xml --filter=MyMatchedEntity</info>
5757
5858
Use the <info>--force</info> option, if you want to override existing mapping files:
5959
60-
<info>./app/console doctrine:mapping:import "MyCustomBundle" xml --force</info>
60+
<info>php app/console doctrine:mapping:import "MyCustomBundle" xml --force</info>
6161
EOT
6262
);
6363
}

src/Symfony/Bundle/DoctrineBundle/Command/InfoDoctrineCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ protected function configure()
3434
entities exist and possibly if their mapping information contains errors or
3535
not.
3636
37-
<info>./app/console doctrine:mapping:info</info>
37+
<info>php app/console doctrine:mapping:info</info>
3838
3939
If you are using multiple entity managers you can pick your choice with the
4040
<info>--em</info> option:
4141
42-
<info>./app/console doctrine:mapping:info --em=default</info>
42+
<info>php app/console doctrine:mapping:info --em=default</info>
4343
EOT
4444
);
4545
}

src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearMetadataCacheDoctrineCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ protected function configure()
3636
The <info>doctrine:cache:clear-metadata</info> command clears all metadata
3737
cache for the default entity manager:
3838
39-
<info>./app/console doctrine:cache:clear-metadata</info>
39+
<info>php app/console doctrine:cache:clear-metadata</info>
4040
4141
You can also optionally specify the <comment>--em</comment> option to specify
4242
which entity manager to clear the cache for:
4343
44-
<info>./app/console doctrine:cache:clear-metadata --em=default</info>
44+
<info>php app/console doctrine:cache:clear-metadata --em=default</info>
4545
EOT
4646
);
4747
}

src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearQueryCacheDoctrineCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ protected function configure()
3636
The <info>doctrine:cache:clear-query</info> command clears all query cache for
3737
the default entity manager:
3838
39-
<info>./app/console doctrine:cache:clear-query</info>
39+
<info>php app/console doctrine:cache:clear-query</info>
4040
4141
You can also optionally specify the <comment>--em</comment> option to specify
4242
which entity manager to clear the cache for:
4343
44-
<info>./app/console doctrine:cache:clear-query --em=default</info>
44+
<info>php app/console doctrine:cache:clear-query --em=default</info>
4545
EOT
4646
);
4747
}

src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearResultCacheDoctrineCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,27 @@ protected function configure()
3636
The <info>doctrine:cache:clear-result</info> command clears all result cache
3737
for the default entity manager:
3838
39-
<info>./app/console doctrine:cache:clear-result</info>
39+
<info>php app/console doctrine:cache:clear-result</info>
4040
4141
You can also optionally specify the <comment>--em</comment> option to specify
4242
which entity manager to clear the cache for:
4343
44-
<info>./app/console doctrine:cache:clear-result --em=default</info>
44+
<info>php app/console doctrine:cache:clear-result --em=default</info>
4545
4646
If you don't want to clear all result cache you can specify some additional
4747
options to control what cache is deleted:
4848
49-
<info>./app/console doctrine:cache:clear-result --id=cache_key</info>
49+
<info>php app/console doctrine:cache:clear-result --id=cache_key</info>
5050
5151
Or you can specify a <comment>--regex</comment> to delete cache entries that
5252
match it:
5353
54-
<info>./app/console doctrine:cache:clear-result --regex="user_(.*)"</info>
54+
<info>php app/console doctrine:cache:clear-result --regex="user_(.*)"</info>
5555
5656
You can also specify a <comment>--prefix</comment> or
5757
<comment>--suffix</comment> to delete cache entries for:
5858
59-
<info>./app/console doctrine:cache:clear-result --prefix="user_" --suffix="_frontend"</info>
59+
<info>php app/console doctrine:cache:clear-result --prefix="user_" --suffix="_frontend"</info>
6060
EOT
6161
);
6262
}

src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ConvertMappingDoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function configure()
3939
The <info>doctrine:mapping:convert</info> command converts mapping information
4040
between supported formats:
4141
42-
<info>./app/console doctrine:mapping:convert xml /path/to/output</info>
42+
<info>php app/console doctrine:mapping:convert xml /path/to/output</info>
4343
EOT
4444
);
4545
}

src/Symfony/Bundle/DoctrineBundle/Command/Proxy/CreateSchemaDoctrineCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ protected function configure()
3939
The <info>doctrine:schema:create</info> command executes the SQL needed to
4040
generate the database schema for the default entity manager:
4141
42-
<info>./app/console doctrine:schema:create</info>
42+
<info>php app/console doctrine:schema:create</info>
4343
4444
You can also generate the database schema for a specific entity manager:
4545
46-
<info>./app/console doctrine:schema:create --em=default</info>
46+
<info>php app/console doctrine:schema:create --em=default</info>
4747
4848
Finally, instead of executing the SQL, you can output the SQL:
4949
50-
<info>./app/console doctrine:schema:create --dump-sql</info>
50+
<info>php app/console doctrine:schema:create --dump-sql</info>
5151
EOT
5252
);
5353
}

0 commit comments

Comments
 (0)
0