Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

Local server

php app/console server:run

php app/console server:stop

Routes list

php app/console debug:router

Send spool emails (SwiftMailer)

php app/console swiftmailer:spool:send --message-limit=10 --env=prod


Entity generation

php app/console doctrine:generate:entities

Entity getter/setter generation

php app/console doctrine:generate:entities AppBundle:EntityName

Schema update

php app/console doctrine:schema:update --force


Generate migration

php app/console doctrine:migrations:diff

Apply migration

php app/console doctrine:migrations:migrate


User role update

php app/console fos:user:promote username ROLE_NAME

User create

php app/console fos:user:create testuser p@ssword



Token cleaning

php app/console fos:oauth-server:clean

Grant access client generation (cf. CreateClientCommand.php)

php app/console acme:oauth-server:client:create --grant-type="password" --grant-type="http://my.custom/grants/access"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.