|
Revision 14971, 1.1 kB
(checked in by FabianLange, 4 years ago)
|
[1.2] fixed help message of propel task
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); |
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
class sfPropelSchemaToXmlTask extends sfPropelBaseTask |
|---|
| 22 |
{ |
|---|
| 23 |
|
|---|
| 24 |
* @see sfTask |
|---|
| 25 |
*/ |
|---|
| 26 |
protected function configure() |
|---|
| 27 |
{ |
|---|
| 28 |
$this->aliases = array('propel-convert-yml-schema'); |
|---|
| 29 |
$this->namespace = 'propel'; |
|---|
| 30 |
$this->name = 'schema-to-xml'; |
|---|
| 31 |
$this->briefDescription = 'Creates schema.xml from schema.yml'; |
|---|
| 32 |
|
|---|
| 33 |
$this->detailedDescription = <<<EOF |
|---|
| 34 |
The [propel:schema-to-xml|INFO] task converts YML schemas to XML: |
|---|
| 35 |
|
|---|
| 36 |
[./symfony propel:schema-to-xml|INFO] |
|---|
| 37 |
EOF; |
|---|
| 38 |
} |
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
* @see sfTask |
|---|
| 42 |
*/ |
|---|
| 43 |
protected function execute($arguments = array(), $options = array()) |
|---|
| 44 |
{ |
|---|
| 45 |
$this->schemaToXML(self::CHECK_SCHEMA); |
|---|
| 46 |
} |
|---|
| 47 |
} |
|---|
| 48 |
|
|---|