From bc11f6e0c858b7c968943268b3fc1dc1ab0762b9 Mon Sep 17 00:00:00 2001 From: Sander Goossens Date: Thu, 18 Feb 2016 08:40:17 +0100 Subject: [PATCH] Change all occurrences of app/console to bin/console --- .../Command/CreateGroupCommand.php | 6 ++-- .../AdminBundle/Command/CreateRoleCommand.php | 6 ++-- .../AdminBundle/Command/CreateUserCommand.php | 10 +++--- .../AdminBundle/Resources/doc/Permissions.md | 2 +- src/Kunstmaan/AdminBundle/UPGRADE.md | 2 +- .../Resources/doc/ArticleBundle.md | 4 +-- src/Kunstmaan/DashboardBundle/UPGRADE.md | 8 ++--- src/Kunstmaan/FormBundle/UPGRADE-3.2.md | 2 +- .../Command/GenerateAdminListCommand.php | 2 +- .../Command/GenerateAdminTestsCommand.php | 2 +- .../Command/GenerateArticleCommand.php | 12 +++---- .../Command/GenerateBundleCommand.php | 4 +-- .../GenerateDefaultPagePartsCommand.php | 6 ++-- .../Command/GenerateDefaultSiteCommand.php | 4 +-- .../Command/GenerateEntityCommand.php | 14 ++++---- .../Command/GenerateFormPageCommand.php | 6 ++-- .../Command/GenerateLayoutCommand.php | 4 +-- .../Command/GeneratePageCommand.php | 6 ++-- .../Command/GeneratePagePartCommand.php | 6 ++-- .../Command/GenerateSearchPageCommand.php | 12 +++---- src/Kunstmaan/GeneratorBundle/README.md | 16 +++++----- .../skeleton/layout/gulp/gulpfile.js | 8 ++--- .../Resources/doc/GeneratorBundle.md | 16 +++++----- src/Kunstmaan/MediaBundle/UPGRADE.md | 10 +++--- .../NodeBundle/Resources/doc/NodeBundle.md | 2 +- src/Kunstmaan/NodeBundle/UPGRADE.md | 6 ++-- src/Kunstmaan/TranslatorBundle/README.md | 32 +++++++++---------- src/Kunstmaan/TranslatorBundle/UPGRADE.md | 6 ++-- 28 files changed, 107 insertions(+), 107 deletions(-) diff --git a/src/Kunstmaan/AdminBundle/Command/CreateGroupCommand.php b/src/Kunstmaan/AdminBundle/Command/CreateGroupCommand.php index c973f8ffbf..ebf28a4329 100644 --- a/src/Kunstmaan/AdminBundle/Command/CreateGroupCommand.php +++ b/src/Kunstmaan/AdminBundle/Command/CreateGroupCommand.php @@ -14,7 +14,7 @@ use Kunstmaan\AdminBundle\Entity\Role; /** - * Symfony CLI command to create a group using app/console kuma:group:create + * Symfony CLI command to create a group using bin/console kuma:group:create */ class CreateGroupCommand extends ContainerAwareCommand { @@ -34,12 +34,12 @@ protected function configure() ->setHelp(<<kuma:group:create command creates a group: - php app/console kuma:group:create Administrators + php bin/console kuma:group:create Administrators 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 : - php app/console kuma:group:create --role=admin,guest Administrators + php bin/console kuma:group:create --role=admin,guest Administrators Note: The ROLE_ prefix will be added if you don't provide it AND you must make sure the roles already exist! diff --git a/src/Kunstmaan/AdminBundle/Command/CreateRoleCommand.php b/src/Kunstmaan/AdminBundle/Command/CreateRoleCommand.php index 3cb7707f10..3791bc415b 100644 --- a/src/Kunstmaan/AdminBundle/Command/CreateRoleCommand.php +++ b/src/Kunstmaan/AdminBundle/Command/CreateRoleCommand.php @@ -12,7 +12,7 @@ use Kunstmaan\AdminBundle\Entity\Role; /** - * Symfony CLI command to create a group using app/console kuma:role:create + * Symfony CLI command to create a group using bin/console kuma:role:create */ class CreateRoleCommand extends ContainerAwareCommand { @@ -29,11 +29,11 @@ protected function configure() ->setHelp(<<kuma:role:create command creates a role: - php app/console kuma:role:create ROLE_ADMIN + php bin/console kuma:role:create ROLE_ADMIN Note: The ROLE_ prefix will be added if you don't provide it - php app/console kuma:role:create ADMIN + php bin/console kuma:role:create ADMIN will create ROLE_ADMIN. diff --git a/src/Kunstmaan/AdminBundle/Command/CreateUserCommand.php b/src/Kunstmaan/AdminBundle/Command/CreateUserCommand.php index 791b0018dd..002301cc34 100644 --- a/src/Kunstmaan/AdminBundle/Command/CreateUserCommand.php +++ b/src/Kunstmaan/AdminBundle/Command/CreateUserCommand.php @@ -14,7 +14,7 @@ use Symfony\Component\Console\Question\Question; /** - * Symfony CLI command to create a user using app/console kuma:user:create + * Symfony CLI command to create a user using bin/console kuma:user:create */ class CreateUserCommand extends ContainerAwareCommand { @@ -36,21 +36,21 @@ protected function configure() ->setHelp(<<kuma:user:create command creates a user: - php app/console kuma:user:create matthieu --group=Users + php bin/console kuma:user:create matthieu --group=Users 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: - php app/console kuma:user:create matthieu matthieu@example.com mypassword en --group=Users + php bin/console kuma:user:create matthieu matthieu@example.com mypassword en --group=Users You can create a super admin via the super-admin flag: - php app/console kuma:user:create admin --super-admin --group=Administrators + php bin/console kuma:user:create admin --super-admin --group=Administrators You can create an inactive user (will not be able to log in): - php app/console kuma:user:create thibault --inactive --group=Users + php bin/console kuma:user:create thibault --inactive --group=Users Note: You have to specify at least one group. diff --git a/src/Kunstmaan/AdminBundle/Resources/doc/Permissions.md b/src/Kunstmaan/AdminBundle/Resources/doc/Permissions.md index b73597a9e5..6842ba1275 100644 --- a/src/Kunstmaan/AdminBundle/Resources/doc/Permissions.md +++ b/src/Kunstmaan/AdminBundle/Resources/doc/Permissions.md @@ -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. diff --git a/src/Kunstmaan/AdminBundle/UPGRADE.md b/src/Kunstmaan/AdminBundle/UPGRADE.md index 62ef9e8370..b476e40c0f 100644 --- a/src/Kunstmaan/AdminBundle/UPGRADE.md +++ b/src/Kunstmaan/AdminBundle/UPGRADE.md @@ -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). diff --git a/src/Kunstmaan/ArticleBundle/Resources/doc/ArticleBundle.md b/src/Kunstmaan/ArticleBundle/Resources/doc/ArticleBundle.md index 637864d9a4..d251e0f58c 100644 --- a/src/Kunstmaan/ArticleBundle/Resources/doc/ArticleBundle.md +++ b/src/Kunstmaan/ArticleBundle/Resources/doc/ArticleBundle.md @@ -15,7 +15,7 @@ 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 @@ -23,7 +23,7 @@ app/console kuma:generate:article --namespace=Namespace\\NamedBundle --entity=En 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 : diff --git a/src/Kunstmaan/DashboardBundle/UPGRADE.md b/src/Kunstmaan/DashboardBundle/UPGRADE.md index b2e3d11a46..c0b1e26481 100644 --- a/src/Kunstmaan/DashboardBundle/UPGRADE.md +++ b/src/Kunstmaan/DashboardBundle/UPGRADE.md @@ -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 diff --git a/src/Kunstmaan/FormBundle/UPGRADE-3.2.md b/src/Kunstmaan/FormBundle/UPGRADE-3.2.md index b6b8477327..5fd86c6149 100644 --- a/src/Kunstmaan/FormBundle/UPGRADE-3.2.md +++ b/src/Kunstmaan/FormBundle/UPGRADE-3.2.md @@ -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. diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminListCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminListCommand.php index 53543ab646..5c1b33db82 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminListCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminListCommand.php @@ -46,7 +46,7 @@ protected function configure() <<kuma:generate:adminlist command generates an AdminList for a Doctrine ORM entity. -php app/console kuma:generate:adminlist Bundle:Entity +php bin/console kuma:generate:adminlist Bundle:Entity EOT ) ->setName('kuma:generate:adminlist'); diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminTestsCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminTestsCommand.php index fac9d93554..4207093e99 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminTestsCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateAdminTestsCommand.php @@ -31,7 +31,7 @@ protected function configure() ->setHelp(<<kuma:generate:admin-test command generates tests to test the admin generated by the default-site generator -php app/console kuma:generate:admin-tests --namespace=Namespace/NamedBundle +php bin/console kuma:generate:admin-tests --namespace=Namespace/NamedBundle EOT ) diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateArticleCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateArticleCommand.php index 3ea03bbe2d..468e304f15 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateArticleCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateArticleCommand.php @@ -34,15 +34,15 @@ protected function configure() ->setHelp(<<kuma:generate:article command generates classes for Articles using the KunstmaanArticleBundle -php app/console kuma:generate:article --namespace=Namespace/NamedBundle --entity=Article +php bin/console kuma:generate:article --namespace=Namespace/NamedBundle --entity=Article Use the --prefix option to add a prefix to the table names of the generated entities -php app/console kuma:generate:article --namespace=Namespace/NamedBundle --prefix=demo_ +php bin/console kuma:generate:article --namespace=Namespace/NamedBundle --prefix=demo_ Add the --dummydata option to create data fixtures to populate your database -php app/console kuma:generate:article --namespace=Namespace/NamedBundle --dummydata +php bin/console kuma:generate:article --namespace=Namespace/NamedBundle --dummydata EOT ) ->setName('kuma:generate:article'); @@ -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: app/console doctrine:schema:update --force', - ' Create a Doctrine migration and run it: app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate') + ' Directly update your database: bin/console doctrine:schema:update --force', + ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate') ); if ($dummydata) { - $output->writeln(' New DataFixtures were created. You can load them via: app/console doctrine:fixtures:load --fixtures=src/'.str_replace('\\', '/', $bundle->getNamespace()).'/DataFixtures/ORM/ArticleGenerator/ --append'); + $output->writeln(' New DataFixtures were created. You can load them via: bin/console doctrine:fixtures:load --fixtures=src/'.str_replace('\\', '/', $bundle->getNamespace()).'/DataFixtures/ORM/ArticleGenerator/ --append'); } $output->writeln(''); diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateBundleCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateBundleCommand.php index 27ea32b45f..9a0cfd8df2 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateBundleCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateBundleCommand.php @@ -39,14 +39,14 @@ protected function configure() (--namespace is the only one needed if you follow the conventions): -php app/console kuma:generate:bundle --namespace=Acme/BlogBundle +php bin/console kuma:generate:bundle --namespace=Acme/BlogBundle Note that you can use / instead of \\ for the namespace delimiter to avoid any problem. If you want to disable any user interaction, use --no-interaction but don't forget to pass all needed options: -php app/console kuma:generate:bundle --namespace=Acme/BlogBundle --dir=src [--bundle-name=...] --no-interaction +php bin/console kuma:generate:bundle --namespace=Acme/BlogBundle --dir=src [--bundle-name=...] --no-interaction Note that the bundle namespace must end with "Bundle". EOT diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php index 3c9856cd97..c5403e3f40 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php @@ -39,7 +39,7 @@ protected function configure() ->setHelp(<<kuma:generate:default-pageparts command generates the default pageparts and adds the pageparts configuration. -php app/console kuma:generate:default-pageparts +php bin/console kuma:generate:default-pageparts EOT ) ->addOption('namespace', '', InputOption::VALUE_OPTIONAL, 'The namespace to generate the default pageparts in') @@ -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: app/console doctrine:schema:update --force', - ' Create a Doctrine migration and run it: app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate') + ' Directly update your database: bin/console doctrine:schema:update --force', + ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate') ); } diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultSiteCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultSiteCommand.php index 81b505b00c..fcfafb52c8 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultSiteCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultSiteCommand.php @@ -36,11 +36,11 @@ protected function configure() ->setHelp(<<kuma:generate:site command generates an website using the Kunstmaan bundles -php app/console kuma:generate:default-site --namespace=Namespace/NamedBundle +php bin/console kuma:generate:default-site --namespace=Namespace/NamedBundle Use the --prefix option to add a prefix to the table names of the generated entities -php app/console kuma:generate:default-site --namespace=Namespace/NamedBundle --prefix=demo_ +php bin/console kuma:generate:default-site --namespace=Namespace/NamedBundle --prefix=demo_ EOT ) ->setDescription('Generates a basic website based on Kunstmaan bundles with default templates') diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateEntityCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateEntityCommand.php index e61738ae01..96d393fc45 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateEntityCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateEntityCommand.php @@ -38,7 +38,7 @@ protected function configure() The kuma:generate:entity task generates a new Doctrine entity inside a bundle: -php app/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post +php bin/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post The above command would initialize a new entity in the following entity namespace Acme\BlogBundle\Entity\Blog\Post. @@ -46,21 +46,21 @@ protected function configure() You can also optionally specify the fields you want to generate in the new entity: -php app/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --fields="title:string(255) body:text" +php bin/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --fields="title:string(255) body:text" The command can also generate the corresponding entity repository class with the --with-repository option: -php app/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --with-repository +php bin/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --with-repository Use the --prefix option to add a prefix to the table names of the generated entities -php app/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --prefix=demo_ +php bin/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --prefix=demo_ To deactivate the interaction mode, simply use the `--no-interaction` option without forgetting to pass all needed options: -php app/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --fields="title:string(255) body:text" --with-repository --no-interaction +php bin/console kuma:generate:entity --entity=AcmeBlogBundle:Blog/Post --fields="title:string(255) body:text" --with-repository --no-interaction EOT ); } @@ -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: app/console doctrine:schema:update --force', - ' Create a Doctrine migration and run it: app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate', + ' Directly update your database: bin/console doctrine:schema:update --force', + ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate', '') ); } diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPageCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPageCommand.php index 84c16f5f87..f793dea7df 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPageCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateFormPageCommand.php @@ -55,7 +55,7 @@ protected function configure() ->setHelp(<<kuma:generate:formpage command generates a new formpage and its configuration. -php app/console kuma:generate:formpage +php bin/console kuma:generate:formpage EOT ) ->addOption('prefix', '', InputOption::VALUE_OPTIONAL, 'The prefix to be used in the table name of the generated entity') @@ -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: app/console doctrine:schema:update --force', - ' Create a Doctrine migration and run it: app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate', + ' Directly update your database: bin/console doctrine:schema:update --force', + ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate', '' )); } diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateLayoutCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateLayoutCommand.php index bf2e273159..a7c649d3c5 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateLayoutCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateLayoutCommand.php @@ -24,11 +24,11 @@ protected function configure() ->setHelp(<<kuma:generate:layout command generates a basic website layout. -php app/console kuma:generate:layout +php bin/console kuma:generate:layout Use the --namespace option to indicate for which bundle you want to create the layout -php app/console kuma:generate:layout --namespace=Namespace/NamedBundle +php bin/console kuma:generate:layout --namespace=Namespace/NamedBundle EOT ) ->addOption('namespace', '', InputOption::VALUE_OPTIONAL, 'The namespace of the bundle where we need to create the layout in') diff --git a/src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php index dce71cc292..da20bc3d19 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php @@ -55,7 +55,7 @@ protected function configure() ->setHelp(<<kuma:generate:page command generates a new page and its configuration. -php app/console kuma:generate:page +php bin/console kuma:generate:page EOT ) ->addOption('prefix', '', InputOption::VALUE_OPTIONAL, 'The prefix to be used in the table name of the generated entity') @@ -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: app/console doctrine:schema:update --force', - ' Create a Doctrine migration and run it: app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate', + ' Directly update your database: bin/console doctrine:schema:update --force', + ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate', '' )); } diff --git a/src/Kunstmaan/GeneratorBundle/Command/GeneratePagePartCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GeneratePagePartCommand.php index d2b6f91a01..1232a429da 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GeneratePagePartCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GeneratePagePartCommand.php @@ -49,7 +49,7 @@ protected function configure() ->setHelp(<<kuma:generate:pagepart command generates a new pagepart and the pagepart configuration. -php app/console kuma:generate:pagepart +php bin/console kuma:generate:pagepart EOT ) ->addOption('prefix', '', InputOption::VALUE_OPTIONAL, 'The prefix to be used in the table name of the generated entity') @@ -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: app/console doctrine:schema:update --force', - ' Create a Doctrine migration and run it: app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate', + ' Directly update your database: bin/console doctrine:schema:update --force', + ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate', ($this->behatTest ? 'A new behat test is created, to run it: bin/behat --tags \'@'.$this->pagepartName.'\' @'.$this->bundle->getName().'' : '') )); } diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php index 56bc7d619e..a4c2ea8c8e 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php @@ -33,15 +33,15 @@ protected function configure() ->setHelp(<<kuma:generate:searchpage command generates a SearchPage using the KunstmaanNodeSearchBundle and KunstmaanSearchBundle -php app/console kuma:generate:searchpage --namespace=Namespace/NamedBundle +php bin/console kuma:generate:searchpage --namespace=Namespace/NamedBundle Use the --prefix option to add a prefix to the table names of the generated entities -php app/console kuma:generate:searchpage --namespace=Namespace/NamedBundle --prefix=demo_ +php bin/console kuma:generate:searchpage --namespace=Namespace/NamedBundle --prefix=demo_ Add the --createpage option to create data fixtures to populate your database with a search page -php app/console kuma:generate:article --namespace=Namespace/NamedBundle --createpage +php bin/console kuma:generate:article --namespace=Namespace/NamedBundle --createpage EOT ) ->setName('kuma:generate:searchpage'); @@ -77,12 +77,12 @@ protected function execute(InputInterface $input, OutputInterface $output) $output->writeln(array( 'Make sure you update your database first before you test the pagepart:', - ' Directly update your database: app/console doctrine:schema:update --force', - ' Create a Doctrine migration and run it: app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate') + ' Directly update your database: bin/console doctrine:schema:update --force', + ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate') ); if ($createPage) { - $output->writeln(' New DataFixtures were created. You can load them via: app/console doctrine:fixtures:load --fixtures=src/'.str_replace('\\', '/', $bundle->getNamespace()).'/DataFixtures/ORM/SearchPageGenerator/ --append'); + $output->writeln(' New DataFixtures were created. You can load them via: bin/console doctrine:fixtures:load --fixtures=src/'.str_replace('\\', '/', $bundle->getNamespace()).'/DataFixtures/ORM/SearchPageGenerator/ --append'); } $output->writeln(''); diff --git a/src/Kunstmaan/GeneratorBundle/README.md b/src/Kunstmaan/GeneratorBundle/README.md index 0220aef35c..8e1066e794 100644 --- a/src/Kunstmaan/GeneratorBundle/README.md +++ b/src/Kunstmaan/GeneratorBundle/README.md @@ -16,19 +16,19 @@ This bundle is compatible with all Symfony 2.3.* releases. More information abou Generate a Bundle : ``` -app/console kuma:generate:bundle +bin/console kuma:generate:bundle ``` Generate an Entity based on the [KunstmaanAdminBundle](https://github.com/Kunstmaan/KunstmaanAdminBundle)'s AbstractEntity ``` -app/console kuma:generate:entity +bin/console kuma:generate:entity ``` Generate a [KunstmaanAdminList](https://github.com/Kunstmaan/KunstmaanAdminListBundle) for an Entity : ``` -app/console kuma:generate:adminlist --entity=Bundle:Entity +bin/console kuma:generate:adminlist --entity=Bundle:Entity ``` ### Website @@ -36,7 +36,7 @@ app/console kuma:generate:adminlist --entity=Bundle:Entity Generate a default website using the Kunstmaan bundles : ``` -app/console kuma:generate:default-site --namespace=Namespace\NamedBundle --prefix=tableprefix_ +bin/console kuma:generate:default-site --namespace=Namespace\NamedBundle --prefix=tableprefix_ ``` #### Search page @@ -44,7 +44,7 @@ app/console kuma:generate:default-site --namespace=Namespace\NamedBundle --prefi Generate a search page based on the [KunstmaanNodeSearchBundle](https://github.com/Kunstmaan/KunstmaanNodeSearchBundle) : ``` -app/console kuma:generate:searchpage --namespace=Namespace\NamedBundle --prefix=tableprefix_ +bin/console kuma:generate:searchpage --namespace=Namespace\NamedBundle --prefix=tableprefix_ ``` #### Article : Overview and detail pages @@ -52,7 +52,7 @@ app/console kuma:generate:searchpage --namespace=Namespace\NamedBundle --prefix= Generate an overview page with article pages. The overview page contains a paginated list of its articles. The articles are managed by AdminLists. ``` -app/console kuma:generate:article --namespace=Namespace\NamedBundle --entity=Entity --prefix=tableprefix_ +bin/console kuma:generate:article --namespace=Namespace\NamedBundle --entity=Entity --prefix=tableprefix_ ``` #### Page @@ -60,7 +60,7 @@ app/console kuma:generate:article --namespace=Namespace\NamedBundle --entity=Ent Generate a new custom page : ``` -app/console kuma:generate:page --prefix=tableprefix_ +bin/console kuma:generate:page --prefix=tableprefix_ ``` #### PagePart @@ -68,7 +68,7 @@ app/console kuma:generate:page --prefix=tableprefix_ Generate a new page part page based on the [KunstmaanPagePartBundle](https://github.com/Kunstmaan/KunstmaanPagePartBundle) : ``` -app/console kuma:generate:pagepart --prefix=tableprefix_ +bin/console kuma:generate:pagepart --prefix=tableprefix_ ``` ## More diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/gulp/gulpfile.js b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/gulp/gulpfile.js index 49f0a68bba..ea53fe402b 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/gulp/gulpfile.js +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/gulp/gulpfile.js @@ -433,15 +433,15 @@ gulp.task('clear-symfony-cache', plugins.shell.task([ // Migrate gulp.task('migrate', plugins.shell.task([ - 'app/console doctrine:migrations:migrate --no-interaction' + 'bin/console doctrine:migrations:migrate --no-interaction' ])); // Clear Cache gulp.task('cc', plugins.shell.task([ - 'php app/console cache:clear', - 'php app/console assetic:dump', - 'php app/console assets:install web --symlink' + 'php bin/console cache:clear', + 'php bin/console assetic:dump', + 'php bin/console assets:install web --symlink' ])); diff --git a/src/Kunstmaan/GeneratorBundle/Resources/doc/GeneratorBundle.md b/src/Kunstmaan/GeneratorBundle/Resources/doc/GeneratorBundle.md index d377cc8d8a..306c4a4a44 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/doc/GeneratorBundle.md +++ b/src/Kunstmaan/GeneratorBundle/Resources/doc/GeneratorBundle.md @@ -12,7 +12,7 @@ The bundle generator is based on the bundle generator of the [SensioGeneratorBun You use the bundle generating with the following command. You will be prompted for the 'namespace', 'dir' and 'bundle-name' parameters. ``` -app/console kuma:generate:bundle +bin/console kuma:generate:bundle ``` ## Entity @@ -26,7 +26,7 @@ This generator is based on the SensioBundleGenerator's GenerateDoctrineEntity, f ### Command ``` -app/console kuma:generate:entity +bin/console kuma:generate:entity ``` ## AdminList @@ -46,7 +46,7 @@ All three classes will be generated from skeleton classes and using Twig generat The 'entity' parameter is required in order to generated the AdminList files based on that Entity. ``` -app/console kuma:generate:adminlist --entity=Bundle:Entity +bin/console kuma:generate:adminlist --entity=Bundle:Entity ``` ## Website @@ -60,7 +60,7 @@ The 'namespace' parameter is required and will determine in which bundle the fil The 'prefix' parameter is optional and will allow you to add a prefix to all table names used by the generated classes. When generating more than one website, you can prevent the websites using the same tables in the database. ``` -app/console kuma:generate:default-site --namespace=Namespace\NamedBundle --prefix=tableprefix_ +bin/console kuma:generate:default-site --namespace=Namespace\NamedBundle --prefix=tableprefix_ ``` ## Search Page @@ -76,7 +76,7 @@ The 'namespace' parameter is required and will determine in which bundle the fil 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:searchpage --namespace=Namespace\NamedBundle --prefix=tableprefix_ +bin/console kuma:generate:searchpage --namespace=Namespace\NamedBundle --prefix=tableprefix_ ``` ## Article : Overview and detail pages @@ -92,7 +92,7 @@ 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_ ``` ## Page @@ -105,7 +105,7 @@ It will also configure the page template and page sections for the created page. 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:page --prefix=tableprefix_ +bin/console kuma:generate:page --prefix=tableprefix_ ``` ## PagePart @@ -119,5 +119,5 @@ configuration file(s), so that the page part can be used in the section(s). 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:pagepart --prefix=tableprefix_ +bin/console kuma:generate:pagepart --prefix=tableprefix_ ``` diff --git a/src/Kunstmaan/MediaBundle/UPGRADE.md b/src/Kunstmaan/MediaBundle/UPGRADE.md index f5aabafe10..6ee25522d1 100644 --- a/src/Kunstmaan/MediaBundle/UPGRADE.md +++ b/src/Kunstmaan/MediaBundle/UPGRADE.md @@ -4,21 +4,21 @@ Upgrade Instructions ## To v2.3.18 with extra fields, indexes and folder tree When upgrading from a previous version, make sure you update the table structure ( -```app/console doctrine:schema:update --force``` -or ```app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate```). +```bin/console doctrine:schema:update --force``` +or ```bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate```). A new field to store the original filename was added to the Media table, so you will have to update the table structure when upgrading from a version prior to 2.3.18. -You can use ```app/console kuma:media:migrate-name``` to initialize the original filename field for already +You can use ```bin/console kuma:media:migrate-name``` to initialize the original filename field for already uploaded media (it will just copy the contents of name field into the original_filename field, so you could also just update this using a simple SQL query if you want). The Folder entity has been refactored to be a nested tree, which should speed up the media section (this will especially be noticeable if you have lots of media folders). -To migrate your current media tree to the new format, you have to execute ```app/console kuma:media:rebuild-folder-tree``` +To migrate your current media tree to the new format, you have to execute ```bin/console kuma:media:rebuild-folder-tree``` to initialize the folder tree. If you decide to undelete folders you should run this command as well. If you want to create PDF preview images for PDF files that have already been uploaded (provided that you have the -necessary PDF support enabled), you can run the ```app/console kuma:media:create-pdf-previews``` command. +necessary PDF support enabled), you can run the ```bin/console kuma:media:create-pdf-previews``` command. diff --git a/src/Kunstmaan/NodeBundle/Resources/doc/NodeBundle.md b/src/Kunstmaan/NodeBundle/Resources/doc/NodeBundle.md index 82819b4058..61551528d7 100644 --- a/src/Kunstmaan/NodeBundle/Resources/doc/NodeBundle.md +++ b/src/Kunstmaan/NodeBundle/Resources/doc/NodeBundle.md @@ -25,5 +25,5 @@ TODO : Write down how slugs and the router works. Nodes can be published on a specified date, you have to configure a cronjob for this: ```cron -* * * * * /....../app/console kuma:nodes:cron +* * * * * /....../bin/console kuma:nodes:cron ``` diff --git a/src/Kunstmaan/NodeBundle/UPGRADE.md b/src/Kunstmaan/NodeBundle/UPGRADE.md index 4c426cda53..1dcaea1a12 100644 --- a/src/Kunstmaan/NodeBundle/UPGRADE.md +++ b/src/Kunstmaan/NodeBundle/UPGRADE.md @@ -4,7 +4,7 @@ Upgrade Instructions ## To v2.2 with nested set support To upgrade from a previous version, you have to copy the Doctrine migrations file from this bundle (Resources/DoctrineMigrations/Version20130611131506.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 some new columns in the kuma_node table @@ -24,5 +24,5 @@ The NodeMenu constructor has been changed to : The AclHelper is a service, you can get it in a controller using : ```$aclHelper = $this->container->get('kunstmaan.acl.helper');``` -A command to create a basic set of permissions is also available, running ```app/console kuma:init:acl``` -(AFTER running ```app/console init:acl```) will create a basic set of permissions for the nodes. +A command to create a basic set of permissions is also available, running ```bin/console kuma:init:acl``` +(AFTER running ```bin/console init:acl```) will create a basic set of permissions for the nodes. diff --git a/src/Kunstmaan/TranslatorBundle/README.md b/src/Kunstmaan/TranslatorBundle/README.md index c1bfab58c3..077eb3f77c 100644 --- a/src/Kunstmaan/TranslatorBundle/README.md +++ b/src/Kunstmaan/TranslatorBundle/README.md @@ -96,7 +96,7 @@ Database schema Update your database schema with doctrine ```php -app/console doctrine:schema:update --force +bin/console doctrine:schema:update --force Database schema updated successfully! "1" queries were executed ``` @@ -106,12 +106,12 @@ Migrate dev translations to production Use the following command to generate a doctrine migration with all new and updated translations from your current environment. ``` -app/console kuma:translator:migrations:diff +bin/console kuma:translator:migrations:diff ``` When you want to include these migrated translations into your (other) environment use the normal doctrine migrate command. ``` -app/console doctrine:migrations:migrate +bin/console doctrine:migrations:migrate ``` Import existing translation files @@ -122,29 +122,29 @@ Without parameters, all translations, locales from the current `main` project wi If you have already existing translations in the database with the same combination of 'domain', 'keyword', 'locale', non of them will be overwritten ``` -app/console kuma:translator:import +bin/console kuma:translator:import ``` To force overwrite the existing translations in the stasher: ``` -app/console kuma:translator:import --force +bin/console kuma:translator:import --force ``` To import translations from a specific bundle: ``` -app/console kuma:translator:import --bundle=superCoolNewApplicationBundle +bin/console kuma:translator:import --bundle=superCoolNewApplicationBundle ``` To import only specific locales: ``` -app/console kuma:translator:import --locales=nl,fr,de +bin/console kuma:translator:import --locales=nl,fr,de ``` To import translations from the global Resources (app/Resources/translations) ``` -app/console kuma:translator:import --globals +bin/console kuma:translator:import --globals ``` How does the cache work @@ -169,12 +169,12 @@ Clear cache and request status Clear translation cache files, this will trigger a rebuild of the translation cache when visiting a page ``` -app/console kuma:translator:cache --flush +bin/console kuma:translator:cache --flush ``` Request status of the current cache ``` -app/console kuma:translator:cache --status +bin/console kuma:translator:cache --status ``` Reset translation flags @@ -183,7 +183,7 @@ When all translations are up to date, e.g when migrated all develop translations Otherwise already migrated translations will be added into later migrations again (which can cause errors with inserts and unique keys) ``` -app/console kuma:translator:flag --reset +bin/console kuma:translator:flag --reset ``` Lookup keyword/domain of your translations @@ -213,18 +213,18 @@ Workflow example (new project) 1. Add translations (with keywords) in your template files (dev) 2. Add the translations of (1) into your backend via "Add Translation" (dev) 3. Repeat 1 & 2 -4. Create migrations diff `app/console kuma:translator:migrations:diff` (dev) -5. Reset translation flags `app/console kuma:translator:flag --reset` (dev) +4. Create migrations diff `bin/console kuma:translator:migrations:diff` (dev) +5. Reset translation flags `bin/console kuma:translator:flag --reset` (dev) 5. Deploy your application -6. Execute doctrine migrations `app/console doctrine:migrations:migrate` (prod) +6. Execute doctrine migrations `bin/console doctrine:migrations:migrate` (prod) 7. Edit/add translations (prod) -8. When ready editing/adding, click `Refresh live` or `app/console kuma:translator:cache --flush` (prod) +8. When ready editing/adding, click `Refresh live` or `bin/console kuma:translator:cache --flush` (prod) 9. Repeat 7 & 8 when editing/adding translations in prod Workflow example (existing project) ------------------------------------- -1. Import current translations, click `Import -> Import` or `app/console kuma:translator:import` (prod/dev) +1. Import current translations, click `Import -> Import` or `bin/console kuma:translator:import` (prod/dev) 2. If you did 1 in dev, go to 4 of `"Workflow example (new project)"`, otherwise go to 7 `"Workflow example (new project)"` diff --git a/src/Kunstmaan/TranslatorBundle/UPGRADE.md b/src/Kunstmaan/TranslatorBundle/UPGRADE.md index 69c786324d..048eae53ed 100644 --- a/src/Kunstmaan/TranslatorBundle/UPGRADE.md +++ b/src/Kunstmaan/TranslatorBundle/UPGRADE.md @@ -10,11 +10,11 @@ To upgrade, first backup your database (just in case) and pull in the new versio TranslatorBundle. Then apply the DB change by running : -```app/console doctrine:migrations:diff && app/console doctrine:migrations:migrate``` +```bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate``` or -```app/console doctrine:schema:update --force``` +```bin/console doctrine:schema:update --force``` Finally execute the following command : -```app/console kuma:translator:migrate``` +```bin/console kuma:translator:migrate``` This should perform the necessary changes.