通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
php bin/console generate:Bundle 相当于创建一个独立工作的模块。再看时发现不是这样。 注意在命令过程中要输入命名空间及后面为Bundle结的名称。其它的选择默认即可 ~~~ php bin/console generate:bundle ....... Bundle namespace: app/apiBundle ~~~ 以下是生成了实体类 php bin/console doctrine:mapping:import --force AppBundle yml php bin/console doctrine:mapping:convert annotation --force ./src php bin/console doctrine:generate:entities AppBundle --no-backup 其它命令: php bin/console cache:clear 所有命令:个人感觉symfony就是这php bin/console算是屌炸天的强 ~~~ php bin/console Symfony 3.2.5 (kernel: app, env: dev, debug: true) Usage: command [options] [arguments] Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -e, --env=ENV The environment name [default: "dev"] --no-debug Switches off debug mode -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Available commands: help Displays help for a command list Lists commands assets assets:install Installs bundles web assets under a public web directory cache cache:clear Clears the cache cache:pool:clear Clears cache pools cache:warmup Warms up an empty cache config config:dump-reference Dumps the default configuration for an extension debug debug:config Dumps the current configuration for an extension debug:container Displays current services for an application debug:event-dispatcher Displays configured listeners for an application debug:router Displays current routes for an application debug:swiftmailer [swiftmailer:debug] Displays current mailers for an application debug:translation Displays translation messages information debug:twig Shows a list of twig functions, filters, globals and tests doctrine doctrine:cache:clear-collection-region Clear a second-level cache collection region. doctrine:cache:clear-entity-region Clear a second-level cache entity region. doctrine:cache:clear-metadata Clears all metadata cache for an entity manager doctrine:cache:clear-query Clears all query cache for an entity manager doctrine:cache:clear-query-region Clear a second-level cache query region. doctrine:cache:clear-result Clears result cache for an entity manager doctrine:database:create Creates the configured database doctrine:database:drop Drops the configured database doctrine:database:import Import SQL file(s) directly to Database. doctrine:ensure-production-settings Verify that Doctrine is properly configured for a production environment. doctrine:generate:crud [generate:doctrine:crud] Generates a CRUD based on a Doctrine entity doctrine:generate:entities [generate:doctrine:entities] Generates entity classes and method stubs from your mapping information doctrine:generate:entity [generate:doctrine:entity] Generates a new Doctrine entity inside a bundle doctrine:generate:form [generate:doctrine:form] Generates a form type class based on a Doctrine entity doctrine:mapping:convert [orm:convert:mapping] Convert mapping information between supported formats. doctrine:mapping:import Imports mapping information from an existing database doctrine:mapping:info doctrine:migrations:diff Generate a migration by comparing your current database to your mapping information. doctrine:migrations:execute Execute a single migration version up or down manually. doctrine:migrations:generate Generate a blank migration class. doctrine:migrations:latest Outputs the latest version number doctrine:migrations:migrate Execute a migration to a specified version or the latest available version. doctrine:migrations:status View the status of a set of migrations. doctrine:migrations:version Manually add and delete migration versions from the version table. doctrine:query:dql Executes arbitrary DQL directly from the command line. doctrine:query:sql Executes arbitrary SQL directly from the command line. doctrine:schema:create Executes (or dumps) the SQL needed to generate the database schema doctrine:schema:drop Executes (or dumps) the SQL needed to drop the current database schema doctrine:schema:update Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata. doctrine:schema:validate Validate the mapping files. generate generate:bundle Generates a bundle generate:command Generates a console command generate:controller Generates a controller lint lint:twig Lints a template and outputs encountered errors lint:yaml Lints a file and outputs encountered errors orm router router:match Helps debug routes by simulating a path info match security security:check Checks security issues in your project dependencies security:encode-password Encodes a password. server server:run Runs PHP built-in web server server:start Starts PHP built-in web server in the background server:status Outputs the status of the built-in web server for the given address server:stop Stops PHP's built-in web server that was started with the server:start command swiftmailer swiftmailer:email:send Send simple email message swiftmailer:spool:send Sends emails from the spool translation translation:extract Extracts translation messages from your code. translation:list-resources List translation resources available. translation:update Updates the translation file ~~~