<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>4's symfony blog &#187; 命令</title>
	<atom:link href="http://www.foolbirds.com/t/%e5%91%bd%e4%bb%a4/feed" rel="self" type="application/rss+xml" />
	<link>http://www.foolbirds.com</link>
	<description>all about symfony</description>
	<lastBuildDate>Fri, 14 Oct 2011 12:36:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>symfony命令行详解</title>
		<link>http://www.foolbirds.com/symfony-cmd.html</link>
		<comments>http://www.foolbirds.com/symfony-cmd.html#comments</comments>
		<pubDate>Tue, 24 Feb 2009 05:05:10 +0000</pubDate>
		<dc:creator>maker</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[命令]]></category>

		<guid isPermaLink="false">http://symfony.bobhero.net/?p=148</guid>
		<description><![CDATA[./symfony list
语法:
symfony [选项] 任务名 [参数]
选项:
&#8211;dry-run                -n  Do a dry run without executing actions.
&#8211;help                           [...]]]></description>
			<content:encoded><![CDATA[<p><strong>./symfony list</strong></p>
<blockquote><p>语法:<br />
symfony [选项] 任务名 [参数]</p>
<p>选项:<br />
&#8211;dry-run                -n  Do a dry run without executing actions.<br />
&#8211;help                                     -H  显示帮助信息<br />
&#8211;quiet                  -q  Do not log messages to standard output.<br />
&#8211;trace                                   -t  Turn on invoke/execute tracing, enable full backtrace.<br />
&#8211;version                              -V  显示程序版本<br />
可用的任务:<br />
<a href='#help'>help</a>                       显示任务的帮助信息 (简写h)</p>
<p><a href='#list'>list</a>                       列出任务</p>
<p><a href='#app-routes'>app:routes</a>                     显示一个应用程序当前的路由信息</p>
<p><a href='#cache-clear'>cache:clear</a>                      清空缓存(简写cc, clear-cache)</p>
<p><a href='#configure-author'>configure:author</a>                     设置项目作者<br />
<a href='#configure-database'>configure:database</a>                   设置数据库 DSN</p>
<p><a href='#generate-app'>generate:app</a>                        初始化一个应用程序 (简写init-app)<br />
<a href='#generate-module'>generate:module</a>                     初始化一个模块 (简写init-module)<br />
<a href='#generate-project'>generate:project</a>                    初始化一个项目 (简写init-proj)<br />
<a href='#generate-task'>generate:task</a>                       Creates a skeleton class for a new task</p>
<p><a href='#i18n-extract'>i18n:extract</a>                    Extracts i18n strings from php files<br />
<a href='#i18n-find'>i18n:find</a>                       Finds non &#8220;i18n ready&#8221; strings in an application</p>
<p><a href='#log-clear'>log:clear</a>                      清空日志 (log-purge)<br />
<a href='#log-rotate'>log:rotate</a>                     Rotates an application log files (log-rotate)</p>
<p><a href='#plugin-add-channel'>plugin:add-channel</a>               添加一个新的PEAR频道<br />
<a href='#plugin-install'>plugin:install</a>                    安装一个插件 (简写plugin-install)<br />
<a href='#plugin-list'>plugin:list</a>                       列出已安装的插件 (简写plugin-list)<br />
<a href='#plugin-publish-assets'>plugin:publish-assets</a>             将全部插件的web目录发布到项目的web目录下<br />
<a href='#plugin-uninstall'>plugin:uninstall</a>                  卸载一个插件 (plugin-uninstall)<br />
<a href='#plugin-upgrade'>plugin:upgrade</a>                    升级一个插件(plugin-upgrade)</p>
<p><a href='#project-clear-controllers'>project:clear-controllers</a>          Clears all non production environment controllers (clear-controllers)<br />
<a href='#project-deploy'>project:deploy</a>                               发布一个项目到另外一台服务器 (sync)<br />
<a href='#project-disable'>project:disable</a>                              在指定环境下屏蔽一个应用程序 (disable)<br />
<a href='#project-enable'>project:enable</a>                                     在指定环境下打开一个应用程序 (disable)<br />
<a href='#project-freeze'>project:freeze</a>                     冻结 symfony 库文件 (简写freeze)<br />
<a href='#project-permissions'>project:permissions</a>                          修改symfony项目目录的权限 (permissions, fix-perms)<br />
<a href='#project-unfreeze'>project:unfreeze</a>                                      解冻 symfony 库文件 (简写unfreeze)<br />
<a href='#project-upgrade11'>project:upgrade1.1</a>                           将一个symfony项目升级到1.1<br />
<a href='#project-upgrade12'>project:upgrade1.2</a>                           将一个symonfy项目从1.1升级到1.2</p>
<p><a href='#propel-build-all'>propel:build-all</a>                            生成model,form,生成sql语句并创建数据库 (propel-build-all)<br />
<a href='#propel-build-all-load'>propel:build-all-load</a>                       生成model,form,生成sql语句,创建数据库并插入初始数据 (propel-build-all-load)<br />
<a href='#propel-build-filters'>propel:build-filters</a>                         根据当前的模型创建过滤器<br />
<a href='#propel-build-forms'>propel:build-forms</a>                           根据当前的模型创建表单<br />
<a href='#propel-build-model'>propel:build-model</a>                          根据数据库结构创建模型 (propel-build-model)<br />
<a href='#propel-build-schema'>propel:build-schema</a>                         根据数据库结构创建schema (propel-build-schema)<br />
<a href='#propel-build-sql'>propel:build-sql</a>                  根据当前模型创建一个SQL (简写propel-build-sql)<br />
<a href='#propel-data-dump'>propel:data-dump</a>                            导出数据到 fixtures directory (propel-dump-data)<br />
<a href='#propel-data-load'>propel:data-load</a>                             从fixtures directory载入数据 (propel-load-data)<br />
<a href='#propel-generate-admin'>propel:generate-admin</a>                        自动生成一个module的后台<br />
<a href='#propel-generate-module'>propel:generate-module</a>            Generates a Propel module (propel-generate-crud, propel:generate-crud)<br />
<a href='#propel-generate-module-for-route'>propel:generate-module-for-route</a>  Generates a Propel module for a route definition<br />
<a href='#propel-graphviz'>propel:graphviz</a>                   Generates a graphviz chart of current object model<br />
<a href='#propel-init-admin'>propel:init-admin</a>                 初始化一个module后台(propel-init-admin)<br />
<a href='#propel-insert-sql'>propel:insert-sql</a>                 Inserts SQL for current model (propel-insert-sql)<br />
<a href='#propel-schema-to-xml'>propel:schema-to-xml</a>              根据schema.yml生成schema.xml (propel-convert-yml-schema)<br />
<a href='#propel-schema-to-yml'>propel:schema-to-yml</a>              根据schema.xml生成schema.yml (propel-convert-xml-schema)</p>
<p><a href='#test-all'>test:all</a>                        运行全部测试 (简写test-all)<br />
<a href='#test-coverage'>test:coverage</a>                   Outputs test code coverage<br />
<a href='#test-functional'>test:functional</a>                 运行全部功能测试 (简写test-functional)<br />
<a href='#test-unit'>test:unit</a>                       运行单元测试 (test-unit)</p></blockquote>
<p><strong><a name='app-routes'>./symfony help app:routes</a></strong></p>
<blockquote><p>语法:<br />
symfony app:routes  application [name]</p>
<p>参数:<br />
application  The application name<br />
name         A route name</p>
<p>描述:<br />
The app:routes displays the current routes for a given application:</p>
<p>./symfony app:routes frontend</p></blockquote>
<p><strong><a name='cache-clear'>./symfony help cc</a></strong></p>
<blockquote><p>语法:<br />
symfony cache:clear [--app[="..."]] [--env[="..."]] [--type[="..."]]</p>
<p>别名: cc, clear-cache</p>
<p>选项:<br />
&#8211;app   The application name<br />
&#8211;env   The environment<br />
&#8211;type  The type (default: all)</p>
<p>描述:<br />
The cache:clear task clears the symfony cache.</p>
<p>By default, it removes the cache for all available types, all applications,<br />
and all environments.</p>
<p>You can restrict by type, application, or environment:</p>
<p>For example, to clear the frontend application cache:</p>
<p>./symfony cache:clear &#8211;app=frontend</p>
<p>To clear the cache for the prod environment for the frontend application:</p>
<p>./symfony cache:clear &#8211;app=frontend &#8211;env=prod</p>
<p>To clear the cache for all prod environments:</p>
<p>./symfony cache:clear &#8211;env=prod</p>
<p>To clear the config cache for all prod environments:</p>
<p>./symfony cache:clear &#8211;type=config &#8211;env=prod</p>
<p>The built-in types are: config, i18n, routing, module<br />
and template.</p></blockquote>
<p><strong><a name='configure-author'>./symfony help configure:author</a></strong></p>
<blockquote><p>语法:<br />
symfony configure:author  author</p>
<p>参数:<br />
author  The project author</p>
<p>描述:<br />
The configure:author task configures the author for a project:</p>
<p>./symfony configure:author &#8220;Fabien Potencier &lt;fabien.potencier@symfony-project.com&gt;&#8221;</p>
<p>The author is used by the generates to pre-configure the PHPDoc header for each generated file.</p>
<p>The value is stored in [config/properties.ini].</p></blockquote>
<p><strong><a name='configure-database'>./symfony help configure:database</a></strong></p>
<blockquote><p>语法:<br />
symfony configure:database [--env[="..."]] [--name[="..."]] [--class[="..."]] [--app[="..."]] dsn [username] [password]</p>
<p>参数:<br />
dsn       The database dsn<br />
username  The database username (default: root)<br />
password  The database password</p>
<p>选项:<br />
&#8211;env     The environment (default: all)<br />
&#8211;name    The connection name (default: propel)<br />
&#8211;class   The database class name (default: sfPropelDatabase)<br />
&#8211;app     The application name</p>
<p>描述:<br />
The configure:database task configures the database DSN<br />
for a project:</p>
<p>./symfony configure:database mysql:host=localhost;dbname=example root mYsEcret</p>
<p>By default, the task change the configuration for all environment. If you want<br />
to change the dsn for a specific environment, use the env option:</p>
<p>./symfony configure:database &#8211;env=dev mysql:host=localhost;dbname=example_dev root mYsEcret</p>
<p>To change the configuration for a specific application, use the app option:</p>
<p>./symfony configure:database &#8211;app=frontend mysql:host=localhost;dbname=example root mYsEcret</p>
<p>You can also specify the connection name and the database class name:</p>
<p>./symfony configure:database &#8211;name=main &#8211;class=sfDoctrineDatabase mysql:host=localhost;dbname=example root</p>
<p>WARNING: The propel.ini file is also updated when you use a Propel database<br />
and configure for all environments with no app.</p></blockquote>
<p><strong><a name='generate-app'>./symfony help generate:app</a></strong></p>
<blockquote><p>语法:<br />
symfony generate:app [--escaping-strategy="..."] [--csrf-secret="..."] application</p>
<p>别名: init-app</p>
<p>参数:<br />
application          The application name</p>
<p>选项:<br />
&#8211;escaping-strategy  Output escaping strategy (default: )<br />
&#8211;csrf-secret        Secret to use for CSRF protection (default: )</p>
<p>描述:<br />
The generate:app task creates the basic directory structure<br />
for a new application in the current project:</p>
<p>./symfony generate:app frontend</p>
<p>This task also creates two front controller scripts in the<br />
web/ directory:</p>
<p>web/%application%.php     for the production environment<br />
web/%application%_dev.php for the development environment</p>
<p>For the first application, the production environment script is named<br />
index.php.</p>
<p>If an application with the same name already exists,<br />
it throws a sfCommandException.</p>
<p>You can enable output escaping (to prevent XSS) by using the escaping-strategy option:</p>
<p>./symfony generate:app frontend &#8211;escaping-strategy=on</p>
<p>You can enable session token in forms (to prevent CSRF) by defining<br />
a secret with the csrf-secret option:</p>
<p>./symfony generate:app frontend &#8211;csrf-secret=UniqueSecret</p></blockquote>
<p><strong><a name='generate-module'>./symfony help generate:module</a></strong></p>
<blockquote><p>语法:<br />
symfony generate:module  application module</p>
<p>别名: init-module</p>
<p>参数:<br />
application  The application name<br />
module       The module name</p>
<p>描述:<br />
The generate:module task creates the basic directory structure<br />
for a new module in an existing application:</p>
<p>./symfony generate:module frontend article</p>
<p>The task can also change the author name found in the actions.class.php<br />
if you have configure it in config/properties.ini:</p>
<p>[symfony]<br />
name=blog<br />
author=Fabien Potencier &lt;fabien.potencier@sensio.com&gt;</p>
<p>You can customize the default skeleton used by the task by creating a<br />
%sf_data_dir%/skeleton/module directory.</p>
<p>The task also creates a functional test stub named<br />
%sf_test_dir%/functional/%application%/%module%ActionsTest.class.php<br />
that does not pass by default.</p>
<p>If a module with the same name already exists in the application,<br />
it throws a sfCommandException.</p></blockquote>
<p><strong><a name='generate:project'>./symfony help generate:project</a></strong></p>
<blockquote><p>用方法:<br />
symfony generate:project  name</p>
<p>别名: init-project</p>
<p>参数:<br />
name  The project name</p>
<p>描述:<br />
The generate:project task creates the basic directory structure<br />
for a new project in the current directory:</p>
<p>./symfony generate:project blog</p>
<p>If the current directory already contains a symfony project,<br />
it throws a sfCommandException.</p></blockquote>
<p><strong><a name='generate-task'>./symfony help generate:task</a></strong></p>
<blockquote><p>语法:<br />
symfony generate:task [--dir="..."] [--use-database="..."] [--brief-description="..."] task_name</p>
<p>参数:<br />
task_name            The task name (can contain namespace)</p>
<p>选项:<br />
&#8211;dir                The directory to create the task in (default: lib/task)<br />
&#8211;use-database       Whether the task needs model initialization to access database (default: propel)<br />
&#8211;brief-description  A brief task description (appears in task list)</p>
<p>描述:<br />
The generate:task creates a new sfTask class based on the name passed as<br />
argument:</p>
<p>./symfony generate:task namespace:name</p>
<p>The namespaceNameTask.class.php skeleton task is created under the lib/task/<br />
directory. Note that the namespace is optional.</p>
<p>If you want to create the file in another directory (relative to the project<br />
root folder), pass it in the &#8211;dir option. This directory will be created<br />
if it does not already exist.</p>
<p>./symfony generate:task namespace:name &#8211;dir=plugins/myPlugin/lib/task</p>
<p>If you want the task to default to a connection other than propel, provide<br />
the name of this connection with the &#8211;use-database option:</p>
<p>./symfony generate:task namespace:name &#8211;use-database=main</p>
<p>The &#8211;use-database option can also be used to disable database<br />
initialization in the generated task:</p>
<p>./symfony generate:task namespace:name &#8211;use-database=false</p>
<p>You can also specify a description:</p>
<p>./symfony generate:task namespace:name &#8211;brief-description=&#8221;Does interesting things&#8221;</p></blockquote>
<p><strong><a name='i18n-extract'>./symfony help i18n:extract</a></strong></p>
<blockquote><p>语法:<br />
symfony i18n:extract [--display-new] [--display-old] [--auto-save] [--auto-delete] application culture</p>
<p>参数:<br />
application    The application name<br />
culture        The target culture</p>
<p>选项:<br />
&#8211;display-new  Output all new found strings<br />
&#8211;display-old  Output all old strings<br />
&#8211;auto-save    Save the new strings<br />
&#8211;auto-delete  Delete old strings</p>
<p>描述:<br />
The i18n:extract task extracts i18n strings from your project files<br />
for the given application and target culture:</p>
<p>./symfony i18n:extract frontend fr</p>
<p>By default, the task only displays the number of new and old strings<br />
it found in the current project.</p>
<p>If you want to display the new strings, use the &#8211;display-new option:</p>
<p>./symfony i18n:extract &#8211;display-new frontend fr</p>
<p>To save them in the i18n message catalogue, use the &#8211;auto-save option:</p>
<p>./symfony i18n:extract &#8211;auto-save frontend fr</p>
<p>If you want to display strings that are present in the i18n messages<br />
catalogue but are not found in the application, use the<br />
&#8211;display-old option:</p>
<p>./symfony i18n:extract &#8211;display-old frontend fr</p>
<p>To automatically delete old strings, use the &#8211;auto-delete but<br />
be careful, especially if you have translations for plugins as they will<br />
appear as old strings but they are not:</p>
<p>./symfony i18n:extract &#8211;auto-delete frontend fr</p></blockquote>
<p><strong><a name='i18n-find'>./symfony help i18n:find</a></strong></p>
<blockquote><p>语法:<br />
symfony i18n:find [--env="..."] application</p>
<p>参数:<br />
application  The application name</p>
<p>选项:<br />
&#8211;env        The environment (default: dev)</p>
<p>描述:<br />
The i18n:find task finds non internationalized strings embedded in templates:</p>
<p>./symfony i18n:find frontend</p>
<p>This task is able to find non internationalized strings in pure HTML and in PHP code:</p>
<p>Non i18n text</p>
<p>As the task returns all strings embedded in PHP, you can have some false positive (especially<br />
if you use the string syntax for helper arguments).</p></blockquote>
<p><strong><a name='log-clear'>./symfony help log:clear</strong></p>
<blockquote><p>语法:<br />
symfony log:clear</p>
<p>别名: log-purge</p>
<p>描述:<br />
The log:clear task clears all symfony log files:</p>
<p>./symfony log:clear</p></blockquote>
<p><strong><a name='log-rotate'>./symfony help log:rotate</a></strong></p>
<blockquote><p>语法:<br />
symfony log:rotate [--history="..."] [--period="..."] application env</p>
<p>别名: log-rotate</p>
<p>参数:<br />
application  The application name<br />
env          The environment name</p>
<p>选项:<br />
&#8211;history    The maximum number of old log files to keep (default: 10)<br />
&#8211;period     The period in days (default: 7)</p>
<p>描述:<br />
The log:rotate task rotates application log files for a given<br />
environment:</p>
<p>./symfony log:rotate frontend dev</p>
<p>You can specify a period or a history option:</p>
<p>./symfony &#8211;history=10 &#8211;period=7 log:rotate frontend dev</p></blockquote>
<p><strong><a name='plugin-add-channel'>./symfony help plugin:add-channel</strong></p>
<blockquote><p>语法:<br />
symfony plugin:add-channel  name</p>
<p>参数:<br />
name  The channel name</p>
<p>描述:<br />
The plugin:add-channel task adds a new PEAR channel:</p>
<p>./symfony plugin:add-channel symfony.plugins.pear.example.com</p></blockquote>
<p><strong><a name='plugin-install'>./symfony help plugin:install</a></strong></p>
<blockquote><p>语法:<br />
symfony plugin:install [--stability|-s="..."] [--release|-r="..."] [--channel|-c="..."] [--install_deps|-d] [--force-license] name</p>
<p>别名: plugin-install</p>
<p>参数:<br />
name             The plugin name</p>
<p>选项:<br />
&#8211;stability      (-s) The preferred stability (stable, beta, alpha)<br />
&#8211;release        (-r) The preferred version<br />
&#8211;channel        (-c) The PEAR channel name<br />
&#8211;install_deps   (-d) Whether to force installation of required dependencies<br />
&#8211;force-license  Whether to force installation even if the license is not MIT like</p>
<p>描述:<br />
The plugin:install task installs a plugin:</p>
<p>./symfony plugin:install sfGuardPlugin</p>
<p>By default, it installs the latest stable release.</p>
<p>If you want to install a plugin that is not stable yet,<br />
use the stability option:</p>
<p>./symfony plugin:install &#8211;stability=beta sfGuardPlugin<br />
./symfony plugin:install -s beta sfGuardPlugin</p>
<p>You can also force the installation of a specific version:</p>
<p>./symfony plugin:install &#8211;release=1.0.0 sfGuardPlugin<br />
./symfony plugin:install -r 1.0.0 sfGuardPlugin</p>
<p>To force installation of all required dependencies, use the install_deps flag:</p>
<p>./symfony plugin:install &#8211;install-deps sfGuardPlugin<br />
./symfony plugin:install -d sfGuardPlugin</p>
<p>By default, the PEAR channel used is symfony-plugins<br />
(plugins.symfony-project.org).</p>
<p>You can specify another channel with the channel option:</p>
<p>./symfony plugin:install &#8211;channel=mypearchannel sfGuardPlugin<br />
./symfony plugin:install -c mypearchannel sfGuardPlugin</p>
<p>Or you can use the channel/package notation:</p>
<p>./symfony plugin:install mypearchannel/sfGuardPlugin</p>
<p>You can also install PEAR packages hosted on a website:</p>
<p>./symfony plugin:install http://somewhere.example.com/sfGuardPlugin-1.0.0.tgz</p>
<p>Or local PEAR packages:</p>
<p>./symfony plugin:install /home/fabien/plugins/sfGuardPlugin-1.0.0.tgz</p>
<p>If the plugin contains some web content (images, stylesheets or javascripts),<br />
the task creates a %name% symbolic link for those assets under web/.<br />
On Windows, the task copy all the files to the web/%name% directory.</p></blockquote>
<p><strong><a name='plugin-list'>./symfony help plugin:list</a></strong></p>
<blockquote><p>语法:<br />
symfony plugin:list</p>
<p>别名: plugin-list</p>
<p>描述:<br />
The plugin:list task lists all installed plugins:</p>
<p>./symfony plugin:list</p>
<p>It also gives the channel and version for each plugin.</p></blockquote>
<p><strong><a name='plugin-publish-assets'>./symfony help plugin:publish-assets</a></strong></p>
<blockquote><p>语法:<br />
symfony plugin:publish-assets [--core-only] [--symfony-lib-dir="..."]</p>
<p>选项:<br />
&#8211;core-only        If set only core plugins will publish their assets<br />
&#8211;symfony-lib-dir  The symfony lib dir</p>
<p>描述:<br />
The plugin:publish-assets task will publish web assets from all plugins.</p>
<p>./symfony plugin:publish-assets</p>
<p>In fact this will send the plugin.post_install event to each plugin.</p></blockquote>
<p><strong><a name='plugin-uninstall'>./symfony help plugin:uninstall</a></strong></p>
<blockquote><p>语法:<br />
symfony plugin:uninstall [--channel|-c="..."] [--install_deps|-d] name</p>
<p>别名: plugin-uninstall</p>
<p>参数:<br />
name            The plugin name</p>
<p>选项:<br />
&#8211;channel       (-c) The PEAR channel name<br />
&#8211;install_deps  (-d) Whether to force installation of dependencies</p>
<p>描述:<br />
The plugin:uninstall task uninstalls a plugin:</p>
<p>./symfony plugin:uninstall sfGuardPlugin</p>
<p>The default channel is symfony.</p>
<p>You can also uninstall a plugin which has a different channel:</p>
<p>./symfony plugin:uninstall &#8211;channel=mypearchannel sfGuardPlugin</p>
<p>./symfony plugin:uninstall -c mypearchannel sfGuardPlugin</p>
<p>Or you can use the channel/package notation:</p>
<p>./symfony plugin:uninstall mypearchannel/sfGuardPlugin</p>
<p>You can get the PEAR channel name of a plugin by launching the<br />
plugin:list] task.</p>
<p>If the plugin contains some web content (images, stylesheets or javascripts),<br />
the task also removes the [web/%name% symbolic link (on *nix)<br />
or directory (on Windows).</p></blockquote>
<p><strong><a name='plugin-upgrade'>./symfony help plugin:upgrade</a></strong></p>
<blockquote><p>语法:<br />
symfony plugin:upgrade [--stability|-s="..."] [--release|-r="..."] [--channel|-c="..."] name</p>
<p>别名: plugin-upgrade</p>
<p>参数:<br />
name         The plugin name</p>
<p>选项:<br />
&#8211;stability  (-s) The preferred stability (stable, beta, alpha)<br />
&#8211;release    (-r) The preferred version<br />
&#8211;channel    (-c) The PEAR channel name</p>
<p>描述:<br />
The plugin:upgrade task tries to upgrade a plugin:</p>
<p>./symfony plugin:upgrade sfGuardPlugin</p>
<p>The default channel is symfony.</p>
<p>If the plugin contains some web content (images, stylesheets or javascripts),<br />
the task also updates the web/%name% directory content on Windows.</p>
<p>See plugin:install for more information about the format of the plugin name and options.</p></blockquote>
<p><strong><a name='project-clear-controllers'>./symfony help project:clear-controllers</a></strong></p>
<blockquote><p>语法:<br />
symfony project:clear-controllers</p>
<p>别名: clear-controllers</p>
<p>描述:<br />
The project:clear-controllers task clears all non production environment<br />
controllers:</p>
<p>./symfony project:clear-controllers</p>
<p>You can use this task on a production server to remove all front<br />
controller scripts except the production ones.</p>
<p>If you have two applications named frontend and backend,<br />
you have four default controller scripts in web/:</p>
<p>index.php<br />
frontend_dev.php<br />
backend.php<br />
backend_dev.php</p>
<p>After executing the project:clear-controllers task, two front<br />
controller scripts are left in web/:</p>
<p>index.php<br />
backend.php</p>
<p>Those two controllers are safe because debug mode and the web debug<br />
toolbar are disabled.</p></blockquote>
<p><strong><a name='project-deploy'>./symfony help project:deploy</a></strong></p>
<blockquote><p>语法:<br />
symfony project:deploy [--go] [--rsync-dir="..."] [--rsync-options[="..."]] server</p>
<p>别名: sync</p>
<p>参数:<br />
server           The server name</p>
<p>选项:<br />
&#8211;go             Do the deployment<br />
&#8211;rsync-dir      The directory where to look for rsync*.txt files (default: config)<br />
&#8211;rsync-options  To options to pass to the rsync executable (default: -azC &#8211;force &#8211;delete)</p>
<p>描述:<br />
The project:deploy task deploys a project on a server:</p>
<p>./symfony project:deploy production</p>
<p>The server must be configured in config/properties.ini:</p>
<p>[production]<br />
host=www.example.com<br />
port=22<br />
user=fabien<br />
dir=/var/www/sfblog/<br />
type=rsync</p>
<p>To automate the deployment, the task uses rsync over SSH.<br />
You must configure SSH access with a key or configure the password<br />
in config/properties.ini.</p>
<p>By default, the task is in dry-mode. To do a real deployment, you<br />
must pass the &#8211;go option:</p>
<p>./symfony project:deploy &#8211;go production</p>
<p>Files and directories configured in config/rsync_exclude.txt are<br />
not deployed:</p>
<p>.svn<br />
/web/uploads/*<br />
/cache/*<br />
/log/*</p>
<p>You can also create a rsync.txt and rsync_include.txt files.</p>
<p>If you need to customize the rsync*.txt files based on the server,<br />
you can pass a rsync-dir option:</p>
<p>./symfony project:deploy &#8211;go &#8211;rsync-dir=config/production production</p>
<p>Last, you can specify the options passed to the rsync executable, using the<br />
rsync-options option (defaults are -azC):</p>
<p>./symfony project:deploy &#8211;go &#8211;rsync-options=avz</p></blockquote>
<p><strong><a name='project-disable'>./symfony help project:disable</a></strong></p>
<blockquote><p>语法:<br />
symfony project:disable  application env</p>
<p>别名: disable</p>
<p>参数:<br />
application  The application name<br />
env          The environment name</p>
<p>描述:<br />
The project:disable task disables an application for a specific environment:</p>
<p>./symfony project:disable frontend prod</p></blockquote>
<p><strong><a name='project-enable'>./symfony help project:enable</a></strong></p>
<blockquote><p>语法:<br />
symfony project:enable  application env</p>
<p>别名: enable</p>
<p>参数:<br />
application  The application name<br />
env          The environment name</p>
<p>描述:<br />
The project:enable task enables an application for a specific environment:</p>
<p>./symfony project:enable frontend prod</p></blockquote>
<p><strong><a name='project-freeze'>./symfony help project:freeze</a></strong></p>
<blockquote><p>语法:<br />
symfony project:freeze  symfony_data_dir</p>
<p>别名: freeze</p>
<p>参数:<br />
symfony_data_dir  The symfony data directory</p>
<p>描述:<br />
The project:freeze task copies all the symfony core files to<br />
the current project:</p>
<p>./symfony project:freeze /path/to/symfony/data/directory</p>
<p>The task takes a mandatory argument of the path to the symfony data<br />
directory.</p>
<p>The task also changes config/config.php to switch to the<br />
embedded symfony files.</p></blockquote>
<p><strong><a name='project-permissions'>./symfony help project:permissions</a></strong></p>
<blockquote><p>语法:<br />
symfony project:permissions</p>
<p>别名: permissions, fix-perms</p>
<p>描述:<br />
The project:permissions task fixes directory permissions:</p>
<p>./symfony project:permissions</p></blockquote>
<p><strong><a name='project-unfreeze'>./symfony help project:unfreeze</a></strong></p>
<blockquote><p>语法:<br />
symfony project:unfreeze</p>
<p>别名: unfreeze</p>
<p>描述:<br />
The project:unfreeze task removes all the symfony core files from<br />
the current project:</p>
<p>./symfony project:unfreeze</p>
<p>The task also changes config/config.php to switch to the<br />
old symfony files used before the project:freeze command was used.</p></blockquote>
<p><strong><a name='project-upgrade11'>./symfony help project:upgrade1.1</a></strong></p>
<blockquote><p>语法:<br />
symfony project:upgrade1.1</p>
<p>描述:<br />
The project:upgrade1.1 task upgrades a symfony project<br />
based the 1.0 release to the 1.1 symfony release.</p>
<p>./symfony project:upgrade1.1</p>
<p>Please read the UPGRADE_TO_1_1 file to have information on what does this task.</p></blockquote>
<p><strong><a name='project-upgrade12'>./symfony help project:upgrade1.2</a></strong></p>
<blockquote><p>语法:<br />
symfony project:upgrade1.2</p>
<p>描述:<br />
The project:upgrade1.2 task upgrades a symfony project<br />
based on the 1.1 release to the 1.2 symfony release.</p>
<p>./symfony project:upgrade1.2</p>
<p>Please read the UPGRADE_TO_1_2 file to have information on what does this task.</p></blockquote>
<p><strong><a name='propel-build-all'>./symfony help propel:build-all</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:build-all [--application[="..."]] [--env="..."] [--connection="..."] [--no-confirmation] [--skip-forms|-F] [--classes-only|-C] [--phing-arg="..."]</p>
<p>别名: propel-build-all</p>
<p>选项:<br />
&#8211;application      The application name (default: 1)<br />
&#8211;env              The environment (default: dev)<br />
&#8211;connection       The connection name (default: propel)<br />
&#8211;no-confirmation  Do not ask for confirmation<br />
&#8211;skip-forms       (-F) Skip generating forms<br />
&#8211;classes-only     (-C) Do not initialize the database<br />
&#8211;phing-arg        Arbitrary phing argument (multiple values allowed)</p>
<p>描述:<br />
The propel:build-all task is a shortcut for five other tasks:</p>
<p>./symfony propel:build-all</p>
<p>The task is equivalent to:</p>
<p>./symfony propel:build-model<br />
./symfony propel:build-forms<br />
./symfony propel:build-filters<br />
./symfony propel:build-sql<br />
./symfony propel:insert-sql</p>
<p>See those tasks&#8217; help pages for more information.</p>
<p>To bypass confirmation prompts, you can pass the no-confirmation option:</p>
<p>./symfony propel:buil-all &#8211;no-confirmation</p>
<p>To build all classes but skip initializing the database, use the classes-only<br />
option:</p>
<p>./symfony propel:build-all &#8211;classes-only</p></blockquote>
<p><strong><a name='propel-build-all-load'>./symfony help propel:build-all-load</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:build-all-load [--application[="..."]] [--env="..."] [--connection="..."] [--no-confirmation] [--skip-forms|-F] [--classes-only|-C] [--phing-arg="..."] [--append] [--dir="..."]</p>
<p>别名: propel-build-all-load</p>
<p>选项:<br />
&#8211;application      The application name (default: 1)<br />
&#8211;env              The environment (default: dev)<br />
&#8211;connection       The connection name (default: propel)<br />
&#8211;no-confirmation  Do not ask for confirmation<br />
&#8211;skip-forms       (-F) Skip generating forms<br />
&#8211;classes-only     (-C) Do not initialize the database<br />
&#8211;phing-arg        Arbitrary phing argument (multiple values allowed)<br />
&#8211;append           Don&#8217;t delete current data in the database<br />
&#8211;dir              The directories to look for fixtures (multiple values allowed)</p>
<p>描述:<br />
The propel:build-all-load task is a shortcut for two other tasks:</p>
<p>./symfony propel:build-all-load</p>
<p>The task is equivalent to:</p>
<p>./symfony propel:build-all<br />
./symfony propel:data-load</p>
<p>See those tasks&#8217; help pages for more information.</p>
<p>To bypass the confirmation, you can pass the no-confirmation<br />
option:</p>
<p>./symfony propel:buil-all-load &#8211;no-confirmation</p></blockquote>
<p><strong><a name='propel-build-filters'>./symfony help propel:build-filters</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:build-filters [--connection="..."] [--model-dir-name="..."] [--filter-dir-name="..."] [--application[="..."]]</p>
<p>选项:<br />
&#8211;connection       The connection name (default: propel)<br />
&#8211;model-dir-name   The model dir name (default: model)<br />
&#8211;filter-dir-name  The filter form dir name (default: filter)<br />
&#8211;application      The application name (default: 1)</p>
<p>描述:<br />
The propel:build-filters task creates filter form classes from the schema:</p>
<p>./symfony propel:build-filters</p>
<p>The task read the schema information in config/*schema.xml and/or<br />
config/*schema.yml from the project and all installed plugins.</p>
<p>The task use the propel connection as defined in config/databases.yml.<br />
You can use another connection by using the &#8211;connection option:</p>
<p>./symfony propel:build-filters &#8211;connection=&#8221;name&#8221;</p>
<p>The model filter form classes files are created in lib/filter.</p>
<p>This task never overrides custom classes in lib/filter.<br />
It only replaces base classes generated in lib/filter/base.</p></blockquote>
<p><strong><a name='propel-build-forms'>./symfony help propel:build-forms</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:build-forms [--connection="..."] [--model-dir-name="..."] [--form-dir-name="..."] [--application[="..."]]</p>
<p>选项:<br />
&#8211;connection      The connection name (default: propel)<br />
&#8211;model-dir-name  The model dir name (default: model)<br />
&#8211;form-dir-name   The form dir name (default: form)<br />
&#8211;application     The application name (default: 1)</p>
<p>描述:<br />
The propel:build-forms task creates form classes from the schema:</p>
<p>./symfony propel:build-forms</p>
<p>The task read the schema information in config/*schema.xml and/or<br />
config/*schema.yml from the project and all installed plugins.</p>
<p>The task use the propel connection as defined in config/databases.yml.<br />
You can use another connection by using the &#8211;connection option:</p>
<p>./symfony propel:build-forms &#8211;connection=&#8221;name&#8221;</p>
<p>The model form classes files are created in lib/form.</p>
<p>This task never overrides custom classes in lib/form.<br />
It only replaces base classes generated in lib/form/base.</p></blockquote>
<p><strong><a name='propel-build-module'>./symfony help propel:build-model</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:build-model [--phing-arg="..."]</p>
<p>别名: propel-build-model</p>
<p>选项:<br />
&#8211;phing-arg  Arbitrary phing argument (multiple values allowed)</p>
<p>描述:<br />
The propel:build-model task creates model classes from the schema:</p>
<p>./symfony propel:build-model</p>
<p>The task read the schema information in config/*schema.xml and/or<br />
config/*schema.yml from the project and all installed plugins.</p>
<p>You mix and match YML and XML schema files. The task will convert<br />
YML ones to XML before calling the Propel task.</p>
<p>The model classes files are created in lib/model.</p>
<p>This task never overrides custom classes in lib/model.<br />
It only replaces files in lib/model/om and lib/model/map.</p></blockquote>
<p><strong><a name='propel-build-schema'>./symfony help propel:build-schema</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:build-schema [--application[="..."]] [--env="..."] [--connection="..."] [--xml] [--phing-arg="..."]</p>
<p>别名: propel-build-schema</p>
<p>选项:<br />
&#8211;application  The application name (default: 1)<br />
&#8211;env          The environment (default: cli)<br />
&#8211;connection   The connection name<br />
&#8211;xml          Creates an XML schema instead of a YML one<br />
&#8211;phing-arg    Arbitrary phing argument (multiple values allowed)</p>
<p>描述:<br />
The propel:build-schema task introspects a database to create a schema:</p>
<p>./symfony propel:build-schema</p>
<p>By default, the task creates a YML file, but you can also create a XML file:</p>
<p>./symfony &#8211;xml propel:build-schema</p>
<p>The XML format contains more information than the YML one.</p></blockquote>
<p><strong><a name='propel-build-sql'>./symfony help propel:build-sql</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:build-sql [--phing-arg="..."]</p>
<p>别名: propel-build-sql</p>
<p>选项:<br />
&#8211;phing-arg  Arbitrary phing argument (multiple values allowed)</p>
<p>描述:<br />
The propel:build-sql task creates SQL statements for table creation:</p>
<p>./symfony propel:build-sql</p>
<p>The generated SQL is optimized for the database configured in config/propel.ini:</p>
<p>propel.database = mysql</p></blockquote>
<p><strong><a name='propel-data-dump'>./symfony help propel:data-dump</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:data-dump [--application[="..."]] [--env="..."] [--connection="..."] [--classes="..."] [target]</p>
<p>别名: propel-dump-data</p>
<p>参数:<br />
target         The target filename</p>
<p>选项:<br />
&#8211;application  The application name (default: 1)<br />
&#8211;env          The environement (default: cli)<br />
&#8211;connection   The connection name (default: propel)<br />
&#8211;classes      The class names to dump (separated by a colon)</p>
<p>描述:<br />
The propel:data-dump task dumps database data:</p>
<p>./symfony propel:data-dump &gt; data/fixtures/dump.yml</p>
<p>By default, the task outputs the data to the standard output,<br />
but you can also pass a filename as a second argument:</p>
<p>./symfony propel:data-dump dump.yml</p>
<p>The task will dump data in data/fixtures/%target%<br />
(data/fixtures/dump.yml in the example).</p>
<p>The dump file is in the YML format and can be re-imported by using<br />
the propel:data-dump task.</p>
<p>By default, the task use the propel connection as defined in config/databases.yml.<br />
You can use another connection by using the connection option:</p>
<p>./symfony propel:data-dump &#8211;connection=&#8221;name&#8221;</p>
<p>If you only want to dump some classes, use the classes option:</p>
<p>./symfony propel:data-dump &#8211;classes=&#8221;Article,Category&#8221;</p>
<p>If you want to use a specific database configuration from an application, you can use<br />
the application option:</p>
<p>./symfony propel:data-dump &#8211;application=frontend</p></blockquote>
<p><strong><a name='propel-data-load'>./symfony help propel:data-load</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:data-load [--application[="..."]] [--env="..."] [--append] [--connection="..."] [--dir="..."]</p>
<p>别名: propel-load-data</p>
<p>选项:<br />
&#8211;application  The application name (default: 1)<br />
&#8211;env          The environment (default: cli)<br />
&#8211;append       Don&#8217;t delete current data in the database<br />
&#8211;connection   The connection name (default: propel)<br />
&#8211;dir          The directories to look for fixtures (multiple values allowed)</p>
<p>描述:<br />
The propel:data-load task loads data fixtures into the database:</p>
<p>./symfony propel:data-load</p>
<p>The task loads data from all the files found in data/fixtures/.</p>
<p>If you want to load data from other directories, you can use<br />
the &#8211;dir option:</p>
<p>./symfony propel:data-load &#8211;dir=&#8221;data/fixtures&#8221; &#8211;dir=&#8221;data/data&#8221;</p>
<p>The task use the propel connection as defined in config/databases.yml.<br />
You can use another connection by using the &#8211;connection option:</p>
<p>./symfony propel:data-load &#8211;connection=&#8221;name&#8221;</p>
<p>If you don&#8217;t want the task to remove existing data in the database,<br />
use the &#8211;append option:</p>
<p>./symfony propel:data-load &#8211;append</p>
<p>If you want to use a specific database configuration from an application, you can use<br />
the application option:</p>
<p>./symfony propel:data-load &#8211;application=frontend</p></blockquote>
<p><strong><a name='propel-generate-admin'>./symfony help propel:generate-admin</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:generate-admin [--module="..."] [--theme="..."] [--singular="..."] [--plural="..."] [--env="..."] application route_or_model</p>
<p>参数:<br />
application     The application name<br />
route_or_model  The route name or the model class</p>
<p>选项:<br />
&#8211;module        The module name<br />
&#8211;theme         The theme name (default: admin)<br />
&#8211;singular      The singular name<br />
&#8211;plural        The plural name<br />
&#8211;env           The environment (default: dev)</p>
<p>描述:<br />
The propel:generate-admin task generates a Propel admin module:</p>
<p>./symfony propel:generate-admin frontend Article</p>
<p>The task creates a module in the %frontend% application for the<br />
%Article% model.</p>
<p>The task creates a route for you in the application routing.yml.</p>
<p>You can also generate a Propel admin module by passing a route name:</p>
<p>./symfony propel:generate-admin frontend article</p>
<p>The task creates a module in the %frontend% application for the<br />
%article% route definition found in routing.yml.</p>
<p>For the filters and batch actions to work properly, you need to add<br />
the wildcard option to the route:</p>
<p>article:<br />
class: sfPropelRouteCollection<br />
options:<br />
model:                Article<br />
with_wildcard_routes: true</p></blockquote>
<p><strong><a name='propel-generate-module-for-route'>./symfony help propel:generate-module-for-route</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:generate-module-for-route [--theme="..."] [--non-verbose-templates] [--singular="..."] [--plural="..."] [--env="..."] application route</p>
<p>参数:<br />
application              The application name<br />
route                    The route name</p>
<p>选项:<br />
&#8211;theme                  The theme name (default: default)<br />
&#8211;non-verbose-templates  Generate non verbose templates<br />
&#8211;singular               The singular name<br />
&#8211;plural                 The plural name<br />
&#8211;env                    The environment (default: dev)</p>
<p>描述:<br />
The propel:generate-module-for-route task generates a Propel module for a route definition:</p>
<p>./symfony propel:generate-module-for-route frontend article</p>
<p>The task creates a module in the %frontend% application for the<br />
%article% route definition found in routing.yml.</p></blockquote>
<p><strong><a name='propel-graphviz'>./symfony help propel:graphviz</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:graphviz [--phing-arg="..."]</p>
<p>选项:<br />
&#8211;phing-arg  Arbitrary phing argument (multiple values allowed)</p>
<p>描述:<br />
The propel:graphviz task creates a graphviz DOT<br />
visualization for automatic graph drawing of object model:</p>
<p>./symfony propel:graphviz</p></blockquote>
<p><strong><a name='propel-init-admin'>./symfony help propel:init-admin</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:init-admin [--theme="..."] application module model</p>
<p>别名: propel-init-admin</p>
<p>参数:<br />
application  The application name<br />
module       The module name<br />
model        The model class name</p>
<p>选项:<br />
&#8211;theme      The theme name (default: default)</p>
<p>描述:<br />
The propel:init-admin task generates a Propel admin module:</p>
<p>./symfony propel:init-admin frontend article Article</p>
<p>The task creates a %module% module in the %application% application<br />
for the model class %model%.</p>
<p>The created module is an empty one that inherit its actions and templates from<br />
a runtime generated module in %sf_app_cache_dir%/modules/auto%module%.</p>
<p>The generator can use a customized theme by using the &#8211;theme option:</p>
<p>./symfony propel:init-admin &#8211;theme=&#8221;custom&#8221; frontend article Article</p></blockquote>
<p><strong><a name='propel-insert-sql'>./symfony help propel:insert-sql</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:insert-sql [--application[="..."]] [--env="..."] [--connection="..."] [--no-confirmation] [--phing-arg="..."]</p>
<p>别名: propel-insert-sql</p>
<p>选项:<br />
&#8211;application      The application name (default: 1)<br />
&#8211;env              The environment (default: cli)<br />
&#8211;connection       The connection name<br />
&#8211;no-confirmation  Do not ask for confirmation<br />
&#8211;phing-arg        Arbitrary phing argument (multiple values allowed)</p>
<p>描述:<br />
The propel:insert-sql task creates database tables:</p>
<p>./symfony propel:insert-sql</p>
<p>The task connects to the database and executes all SQL statements<br />
found in config/sql/*schema.sql files.</p>
<p>Before execution, the task will ask you to confirm the execution<br />
as it deletes all data in your database.</p>
<p>To bypass the confirmation, you can pass the &#8211;no-confirmation<br />
option:</p>
<p>./symfony propel:insert-sql &#8211;no-confirmation</p>
<p>The task read the database configuration from `databases.yml`.<br />
You can use a specific application/environment by passing<br />
an &#8211;application or &#8211;env option.</p>
<p>You can also use the &#8211;connection option if you want to<br />
only load SQL statements for a given connection.</p></blockquote>
<p><strong><a name='propel-schema-to-xml'>./symfony help propel:schema-to-xml</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:schema-to-xml</p>
<p>别名: propel-convert-yml-schema</p>
<p>描述:<br />
The propel:schema-to-xml task converts YML schemas to XML:</p>
<p>./symfony propel:schema-to-xml</p></blockquote>
<p><strong><a name='propel-schema-to-yml'>./symfony help propel:schema-to-yml</a></strong></p>
<blockquote><p>语法:<br />
symfony propel:schema-to-yml</p>
<p>别名: propel-convert-xml-schema</p>
<p>描述:<br />
The propel:schema-to-yml task converts XML schemas to YML:</p>
<p>./symfony propel:schema-to-yml</p></blockquote>
<p><strong><a name='test-all'>./symfony help test:all</a></strong></p>
<blockquote><p>语法:<br />
symfony test:all</p>
<p>别名: test-all</p>
<p>描述:<br />
The test:all task launches all unit and functional tests:</p>
<p>./symfony test:all</p>
<p>The task launches all tests found in test/.</p>
<p>If one or more test fail, you can try to fix the problem by launching<br />
them by hand or with the test:unit and test:functional task.</p></blockquote>
<p><strong><a name='test-coverage'>./symfony help test:coverage</a></strong></p>
<blockquote><p>语法:<br />
symfony test:coverage [--detailed] test_name lib_name</p>
<p>参数:<br />
test_name   A test file name or a test directory<br />
lib_name    A lib file name or a lib directory for wich you want to know the coverage</p>
<p>选项:<br />
&#8211;detailed  Output detailed information</p>
<p>描述:<br />
The test:coverage task outputs the code coverage<br />
given a test file or test directory<br />
and a lib file or lib directory for which you want code<br />
coverage:</p>
<p>./symfony test:coverage test/unit/model lib/model</p>
<p>To output the lines not covered, pass the &#8211;detailed option:</p>
<p>./symfony test:coverage &#8211;detailed test/unit/model lib/model</p></blockquote>
<p><strong><a name='test-functional'>./symfony help test:functional</a></strong></p>
<blockquote><p>语法:<br />
symfony test:functional  application [controller1] &#8230; [nameN]</p>
<p>别名: test-functional</p>
<p>参数:<br />
application  The application name<br />
controller   The controller name</p>
<p>描述:<br />
The test:functional task launches functional tests for a<br />
given application:</p>
<p>./symfony test:functional frontend</p>
<p>The task launches all tests found in test/functional/%application%.</p>
<p>You can launch all functional tests for a specific controller by<br />
giving a controller name:</p>
<p>./symfony test:functional frontend article</p>
<p>You can also launch all functional tests for several controllers:</p>
<p>./symfony test:functional frontend article comment</blockquote<br />
<strong><a name='test-unit'>./symfony help test:unit</a></strong></p>
<blockquote><p>使用方法:<br />
symfony test:unit  [name1] &#8230; [nameN]</p>
<p>别名: test-unit</p>
<p>参数:<br />
name  The test name</p>
<p>描述:<br />
The test:unit task launches unit tests:</p>
<p>./symfony test:unit</p>
<p>The task launches all tests found in test/unit.</p>
<p>You can launch unit tests for a specific name:</p>
<p>./symfony test:unit strtolower</p>
<p>You can also launch unit tests for several names:</p>
<p>./symfony test:unit strtolower strtoupper</p></blockquote>
<p>./symfony -V</p>
<blockquote><p>symfony version 1.2.4-DEV (/home/maker/www/symfony/lib)</p></blockquote>
<ul class="related_post"><li><a href="http://www.foolbirds.com/use_symfony_filter_to_filteredurl.html" title="使用symfony filter 过滤URL">使用symfony filter 过滤URL</a></li><li><a href="http://www.foolbirds.com/%e4%bb%bfsymfony%e6%9c%ba%e5%88%b6%e5%ae%9e%e7%8e%b0%e4%b8%8d%e7%94%a8require%e6%88%96%e8%80%85include%e6%9d%a5%e5%ae%9e%e4%be%8b%e5%8c%96%e7%b1%bb.html" title="仿symfony机制实现不用require或者include来实例化类">仿symfony机制实现不用require或者include来实例化类</a></li><li><a href="http://www.foolbirds.com/use-datetime-in-php5-1-x-with-symfony.html" title="symfony1.4 DateTime对于PHP低版本的兼容问题">symfony1.4 DateTime对于PHP低版本的兼容问题</a></li><li><a href="http://www.foolbirds.com/%e5%a6%82%e4%bd%95%e5%9c%a8fixtures-yml%e5%86%99%e5%be%aa%e7%8e%af%e6%b7%bb%e5%8a%a0%e6%95%b0%e6%8d%ae.html" title="如何在fixtures.yml写循环添加数据">如何在fixtures.yml写循环添加数据</a></li><li><a href="http://www.foolbirds.com/symfony-1-4-database-utf8.html" title="symfony 1.4 数据库 utf8设置">symfony 1.4 数据库 utf8设置</a></li><li><a href="http://www.foolbirds.com/symfony-cheat-sheet.html" title="symfony cheat sheet">symfony cheat sheet</a></li><li><a href="http://www.foolbirds.com/cheat-sheets.html" title="Cheat Sheets!">Cheat Sheets!</a></li><li><a href="http://www.foolbirds.com/how-to-use-swift-to-send-mail-in-symfon.html" title="如何使用swift发送邮件">如何使用swift发送邮件</a></li><li><a href="http://www.foolbirds.com/batch-in-symfony12.html" title="symfony1.2下的命令行程序(batch)">symfony1.2下的命令行程序(batch)</a></li><li><a href="http://www.foolbirds.com/generate-admin-templates-structure.html" title="symfony1.2的后台(generate-admin)模板结构">symfony1.2的后台(generate-admin)模板结构</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.foolbirds.com/symfony-cmd.html/feed</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>

