text Symfony常用命令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Symfony常用命令相关的知识,希望对你有一定的参考价值。

Terminal
+ composer require annotations (For route usage)
If there is a routing error it might be that an .htaccess file is missing.
 - composer config extra.symfony.allow-contrib true
 - composer req symfony/apache-pack
- composer require twig (Template engine)
- composer require doctrine maker (DB)
- php bin/console doctrine:database:create (creates configured DB in .env file)
- php bin/console make:entity EntityName (Creates a new table and Entity class in src/Entity/ Folder)
- php bin/console doctrine:migrations:diff (checks for differences in DB and )
- php bin/console doctrine:migrations:migrate (applies new differences from src/Entity/ Folder)
- composer require form (To integrate formulars in project)
- php bin/console make:controller (Creates a new Controller)

以上是关于text Symfony常用命令的主要内容,如果未能解决你的问题,请参考以下文章

Symfony3 - 未通过命令发送电子邮件

使用Symfony的Console组件构建命令行程序

text 自我提升的symfony

text faker fixtures symfony

text symfony bootstrap

text Symfony 3 - Anotations