Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Change all occurrences of app/console to bin/console #1024

Merged
merged 1 commit into from
Feb 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Kunstmaan/AdminBundle/Command/CreateGroupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Kunstmaan\AdminBundle\Entity\Role;

/**
* Symfony CLI command to create a group using app/console kuma:group:create <name_of_the_group>
* Symfony CLI command to create a group using bin/console kuma:group:create <name_of_the_group>
*/
class CreateGroupCommand extends ContainerAwareCommand
{
Expand All @@ -34,12 +34,12 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:group:create</info> command creates a group:

<info>php app/console kuma:group:create Administrators</info>
<info>php bin/console kuma:group:create Administrators</info>

You can specify a list of roles to attach to this group by specifying the
optional --roles parameter, providing a comma separated list of roles :

<info>php app/console kuma:group:create --role=admin,guest Administrators</info>
<info>php bin/console kuma:group:create --role=admin,guest Administrators</info>

<comment>Note:</comment> The ROLE_ prefix will be added if you don't provide it AND you must make
sure the roles already exist!
Expand Down
6 changes: 3 additions & 3 deletions src/Kunstmaan/AdminBundle/Command/CreateRoleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Kunstmaan\AdminBundle\Entity\Role;

/**
* Symfony CLI command to create a group using app/console kuma:role:create <NAME_OF_THE_ROLE>
* Symfony CLI command to create a group using bin/console kuma:role:create <NAME_OF_THE_ROLE>
*/
class CreateRoleCommand extends ContainerAwareCommand
{
Expand All @@ -29,11 +29,11 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:role:create</info> command creates a role:

<info>php app/console kuma:role:create ROLE_ADMIN</info>
<info>php bin/console kuma:role:create ROLE_ADMIN</info>

<comment>Note:</comment> The ROLE_ prefix will be added if you don't provide it

<info>php app/console kuma:role:create ADMIN</info>
<info>php bin/console kuma:role:create ADMIN</info>

will create ROLE_ADMIN.

Expand Down
10 changes: 5 additions & 5 deletions src/Kunstmaan/AdminBundle/Command/CreateUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\Console\Question\Question;

/**
* Symfony CLI command to create a user using app/console kuma:user:create <username_of_the_user>
* Symfony CLI command to create a user using bin/console kuma:user:create <username_of_the_user>
*/
class CreateUserCommand extends ContainerAwareCommand
{
Expand All @@ -36,21 +36,21 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:user:create</info> command creates a user:

<info>php app/console kuma:user:create matthieu --group=Users</info>
<info>php bin/console kuma:user:create matthieu --group=Users</info>

This interactive shell will ask you for an email and then a password.

You can alternatively specify the email, password and locale and group as extra arguments:

<info>php app/console kuma:user:create matthieu matthieu@example.com mypassword en --group=Users</info>
<info>php bin/console kuma:user:create matthieu matthieu@example.com mypassword en --group=Users</info>

You can create a super admin via the super-admin flag:

<info>php app/console kuma:user:create admin --super-admin --group=Administrators</info>
<info>php bin/console kuma:user:create admin --super-admin --group=Administrators</info>

You can create an inactive user (will not be able to log in):

<info>php app/console kuma:user:create thibault --inactive --group=Users</info>
<info>php bin/console kuma:user:create thibault --inactive --group=Users</info>

<comment>Note:</comment> You have to specify at least one group.

Expand Down
2 changes: 1 addition & 1 deletion src/Kunstmaan/AdminBundle/Resources/doc/Permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ security:
After the connection is configured, we have to import the database structure, you do that by running

```
app/console init:acl
bin/console init:acl
```

Without this you will not be able to use ACL permission support.
Expand Down
2 changes: 1 addition & 1 deletion src/Kunstmaan/AdminBundle/UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To upgrade, first pull in the new version of all bundles.
Remove guest_user: true from app/config/security.yml.

And finally execute the following command :
```app/console kuma:fix:guest```
```bin/console kuma:fix:guest```

This should execute the necessary changes (you could delete/rename the guest user afterwards as well - we just leave
it in case there are items linked to it).
Expand Down
4 changes: 2 additions & 2 deletions src/Kunstmaan/ArticleBundle/Resources/doc/ArticleBundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ The 'entity' parameter is required in order to generated the class names. Most u
The 'prefix' parameter is optional and will allow you to add a prefix to all table names used by the generated classes.

```
app/console kuma:generate:article --namespace=Namespace\\NamedBundle --entity=Entity --prefix=tableprefix_
bin/console kuma:generate:article --namespace=Namespace\\NamedBundle --entity=Entity --prefix=tableprefix_
```

### Generated files

Assuming we generated articles using the following parameters :

```
app/console kuma:generate:article --namespace=Kunstmaan\\NewsBundle --entity=news --prefix=news_
bin/console kuma:generate:article --namespace=Kunstmaan\\NewsBundle --entity=news --prefix=news_
```

The following files will be generated :
Expand Down
8 changes: 4 additions & 4 deletions src/Kunstmaan/DashboardBundle/UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Because of the changes with the multi-config setup, you'll need to flush your da

Use either a migration or force a schema update to update the database

app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate
app/console doctrine:schema:update --force
bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate
bin/console doctrine:schema:update --force

Flush the data and reload it

app/console kuma:dashboard:widget:googleanalytics:data:flush
app/console kuma:dashboard:collect
bin/console kuma:dashboard:widget:googleanalytics:data:flush
bin/console kuma:dashboard:collect
2 changes: 1 addition & 1 deletion src/Kunstmaan/FormBundle/UPGRADE-3.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Upgrade Instructions
## To v3.2 with form submission field order support

To upgrade from a previous version, you have to copy the Doctrine migrations file from this bundle (Resources/DoctrineMigrations/Version20150527162434.php)
to your app/DoctrineMigrations/ folder and run it: ```app/console doctrine:migrations:migrate```
to your app/DoctrineMigrations/ folder and run it: ```bin/console doctrine:migrations:migrate```

This migration will create a new column in the `kuma_form_submission_fields` table.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function configure()
<<<EOT
The <info>kuma:generate:adminlist</info> command generates an AdminList for a Doctrine ORM entity.

<info>php app/console kuma:generate:adminlist Bundle:Entity</info>
<info>php bin/console kuma:generate:adminlist Bundle:Entity</info>
EOT
)
->setName('kuma:generate:adminlist');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:generate:admin-test</info> command generates tests to test the admin generated by the default-site generator

<info>php app/console kuma:generate:admin-tests --namespace=Namespace/NamedBundle</info>
<info>php bin/console kuma:generate:admin-tests --namespace=Namespace/NamedBundle</info>

EOT
)
Expand Down
12 changes: 6 additions & 6 deletions src/Kunstmaan/GeneratorBundle/Command/GenerateArticleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:generate:article</info> command generates classes for Articles using the KunstmaanArticleBundle

<info>php app/console kuma:generate:article --namespace=Namespace/NamedBundle --entity=Article</info>
<info>php bin/console kuma:generate:article --namespace=Namespace/NamedBundle --entity=Article</info>

Use the <info>--prefix</info> option to add a prefix to the table names of the generated entities

<info>php app/console kuma:generate:article --namespace=Namespace/NamedBundle --prefix=demo_</info>
<info>php bin/console kuma:generate:article --namespace=Namespace/NamedBundle --prefix=demo_</info>

Add the <info>--dummydata</info> option to create data fixtures to populate your database

<info>php app/console kuma:generate:article --namespace=Namespace/NamedBundle --dummydata</info>
<info>php bin/console kuma:generate:article --namespace=Namespace/NamedBundle --dummydata</info>
EOT
)
->setName('kuma:generate:article');
Expand Down Expand Up @@ -77,12 +77,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
$generator->generate($bundle, $entity, $prefix, $dummydata, $output);

$output->writeln(array('Make sure you update your database first before using the created entities:',
' Directly update your database: <comment>app/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate</comment>')
' Directly update your database: <comment>bin/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate</comment>')
);

if ($dummydata) {
$output->writeln(' New DataFixtures were created. You can load them via: <comment>app/console doctrine:fixtures:load --fixtures=src/'.str_replace('\\', '/', $bundle->getNamespace()).'/DataFixtures/ORM/ArticleGenerator/ --append</comment>');
$output->writeln(' New DataFixtures were created. You can load them via: <comment>bin/console doctrine:fixtures:load --fixtures=src/'.str_replace('\\', '/', $bundle->getNamespace()).'/DataFixtures/ORM/ArticleGenerator/ --append</comment>');
}

$output->writeln('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ protected function configure()
(<comment>--namespace</comment> is the only one needed if you follow the
conventions):

<info>php app/console kuma:generate:bundle --namespace=Acme/BlogBundle</info>
<info>php bin/console kuma:generate:bundle --namespace=Acme/BlogBundle</info>

Note that you can use <comment>/</comment> instead of <comment>\\</comment> for the namespace delimiter to avoid any
problem.

If you want to disable any user interaction, use <comment>--no-interaction</comment> but don't forget to pass all needed options:

<info>php app/console kuma:generate:bundle --namespace=Acme/BlogBundle --dir=src [--bundle-name=...] --no-interaction</info>
<info>php bin/console kuma:generate:bundle --namespace=Acme/BlogBundle --dir=src [--bundle-name=...] --no-interaction</info>

Note that the bundle namespace must end with "Bundle".
EOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:generate:default-pageparts</info> command generates the default pageparts and adds the pageparts configuration.

<info>php app/console kuma:generate:default-pageparts</info>
<info>php bin/console kuma:generate:default-pageparts</info>
EOT
)
->addOption('namespace', '', InputOption::VALUE_OPTIONAL, 'The namespace to generate the default pageparts in')
Expand Down Expand Up @@ -87,8 +87,8 @@ protected function doExecute()
$this->assistant->writeSection('PageParts successfully created', 'bg=green;fg=black');
$this->assistant->writeLine(array(
'Make sure you update your database first before you test the pagepart:',
' Directly update your database: <comment>app/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate</comment>')
' Directly update your database: <comment>bin/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate</comment>')
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:generate:site</info> command generates an website using the Kunstmaan bundles

<info>php app/console kuma:generate:default-site --namespace=Namespace/NamedBundle</info>
<info>php bin/console kuma:generate:default-site --namespace=Namespace/NamedBundle</info>

Use the <info>--prefix</info> option to add a prefix to the table names of the generated entities

<info>php app/console kuma:generate:default-site --namespace=Namespace/NamedBundle --prefix=demo_</info>
<info>php bin/console kuma:generate:default-site --namespace=Namespace/NamedBundle --prefix=demo_</info>
EOT
)
->setDescription('Generates a basic website based on Kunstmaan bundles with default templates')
Expand Down
14 changes: 7 additions & 7 deletions src/Kunstmaan/GeneratorBundle/Command/GenerateEntityCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,29 @@ protected function configure()
The <info>kuma:generate:entity</info> task generates a new Doctrine
entity inside a bundle:

<info>php app/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post</info>
<info>php bin/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post</info>

The above command would initialize a new entity in the following entity
namespace <info>Acme\BlogBundle\Entity\Blog\Post</info>.

You can also optionally specify the fields you want to generate in the new
entity:

<info>php app/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --fields="title:string(255) body:text"</info>
<info>php bin/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --fields="title:string(255) body:text"</info>

The command can also generate the corresponding entity repository class with the
<comment>--with-repository</comment> option:

<info>php app/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --with-repository</info>
<info>php bin/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --with-repository</info>

Use the <info>--prefix</info> option to add a prefix to the table names of the generated entities

<info>php app/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --prefix=demo_</info>
<info>php bin/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --prefix=demo_</info>

To deactivate the interaction mode, simply use the `--no-interaction` option
without forgetting to pass all needed options:

<info>php app/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --fields="title:string(255) body:text" --with-repository --no-interaction</info>
<info>php bin/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --fields="title:string(255) body:text" --with-repository --no-interaction</info>
EOT
);
}
Expand Down Expand Up @@ -103,8 +103,8 @@ protected function execute(InputInterface $input, OutputInterface $output)

$output->writeln(array(
'Make sure you update your database first before you test the entity/adminlist:',
' Directly update your database: <comment>app/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate</comment>',
' Directly update your database: <comment>bin/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate</comment>',
'')
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:generate:formpage</info> command generates a new formpage and its configuration.

<info>php app/console kuma:generate:formpage</info>
<info>php bin/console kuma:generate:formpage</info>
EOT
)
->addOption('prefix', '', InputOption::VALUE_OPTIONAL, 'The prefix to be used in the table name of the generated entity')
Expand Down Expand Up @@ -95,8 +95,8 @@ protected function doExecute()

$this->assistant->writeLine(array(
'Make sure you update your database first before you use the page:',
' Directly update your database: <comment>app/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate</comment>',
' Directly update your database: <comment>bin/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate</comment>',
''
));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:generate:layout</info> command generates a basic website layout.

<info>php app/console kuma:generate:layout</info>
<info>php bin/console kuma:generate:layout</info>

Use the <info>--namespace</info> option to indicate for which bundle you want to create the layout

<info>php app/console kuma:generate:layout --namespace=Namespace/NamedBundle</info>
<info>php bin/console kuma:generate:layout --namespace=Namespace/NamedBundle</info>
EOT
)
->addOption('namespace', '', InputOption::VALUE_OPTIONAL, 'The namespace of the bundle where we need to create the layout in')
Expand Down
6 changes: 3 additions & 3 deletions src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:generate:page</info> command generates a new page and its configuration.

<info>php app/console kuma:generate:page</info>
<info>php bin/console kuma:generate:page</info>
EOT
)
->addOption('prefix', '', InputOption::VALUE_OPTIONAL, 'The prefix to be used in the table name of the generated entity')
Expand Down Expand Up @@ -94,8 +94,8 @@ protected function doExecute()

$this->assistant->writeLine(array(
'Make sure you update your database first before you use the page:',
' Directly update your database: <comment>app/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate</comment>',
' Directly update your database: <comment>bin/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate</comment>',
''
));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function configure()
->setHelp(<<<EOT
The <info>kuma:generate:pagepart</info> command generates a new pagepart and the pagepart configuration.

<info>php app/console kuma:generate:pagepart</info>
<info>php bin/console kuma:generate:pagepart</info>
EOT
)
->addOption('prefix', '', InputOption::VALUE_OPTIONAL, 'The prefix to be used in the table name of the generated entity')
Expand All @@ -76,8 +76,8 @@ protected function doExecute()
$this->assistant->writeSection('PagePart successfully created', 'bg=green;fg=black');
$this->assistant->writeLine(array(
'Make sure you update your database first before you test the pagepart:',
' Directly update your database: <comment>app/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate</comment>',
' Directly update your database: <comment>bin/console doctrine:schema:update --force</comment>',
' Create a Doctrine migration and run it: <comment>bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate</comment>',
($this->behatTest ? 'A new behat test is created, to run it: <comment>bin/behat --tags \'@'.$this->pagepartName.'\' @'.$this->bundle->getName().'</comment>' : '')
));
}
Expand Down
Loading