symfony-console

PhpStorm terminal : Cygwin colors does not work

梦想的初衷 提交于 2019-12-06 08:05:43
I have PhpStorm 2016.2 and I added Cygwin in the Shell path as follow : "C:\cygwin64\bin\env.exe" CHERE_INVOKING=1 /bin/bash.exe It's working well, but the colors do not work. For exemple I have ?[32m Name instead of having Name colored in green. I tried several things like adding the plugin Grep Console to have the support of ANSI Color, but didn't work. It's really hard to work with lines with multiple ANSI colors ?[39m ?[32m Scheme ?[39m ?[32m Host ?[39m ?[32m Path . Do not hesitate to ask further information about the problem. Thank you. P.S. I'm on Windows 10. EDIT when I do /usr/bin

Workaround for doctrine generator in PSR-4 codebase

感情迁移 提交于 2019-12-04 14:09:38
With Symfony 2 & Doctrine on a Windows machine I'm trying to generate entities from an existing schema: php app/console doctrine:mapping:import --force CoreBundle annotation generate getters/setters on them: php app/console doctrine:generate:entities --path=/path/to/codebase/src/MyProject/CoreBundle/Entities CoreBundle generate REST CRUD controllers on them using Voryx : php app/console voryx:generate:rest --entity="CoreBundle:User" The first steps works fine and I can find the entities in my CoreBundle/Entity folder with the correct namespace: MyVendor\MyProject\CoreBundle\Entity Good so far.

Symfony2 like database creation command in laravel console?

旧时模样 提交于 2019-12-01 14:45:10
I have used symfony2 console to create database. If I want to create a database named "symfony" I usually mentioned that name in parameters.yml file and run the below command in console php app/console doctrine:database:create But when came to laravel, I don't find similar command to create database in laravel. Can anyone help me to find out those command to create database directly from Laravel Console . You can do that but you will have to create your own command . First, run php artisan command:make CreateDatabase --command=database:create to generate app/commands/CreateDatabase.php Then