SYmfony插件上传错误:您必须为symfony指定最小版本

时间:2010-09-22 14:25:25

标签: plugins symfony1 packages pear

我一直试图上传我的SYmfony插件一段时间但我一直收到这个错误。 最初缺少对SYmfony Package的依赖,但我补充说。 我的package.xml看起来像这样:

<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.9.0" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0     http://pear.php.net/dtd/tasks-1.0.xsd     http://pear.php.net/dtd/package-2.0     http://pear.php.net/dtd/package-2.0.xsd">
 <name>sfActivateablePlugin</name>
 <channel>pear.symfony-project.com</channel>
 <summary>sfActivateablePlugin allows auditing record activation/deactivation by setting up a flag, timestamp &amp; user detail fields.</summary>
 <description>The sfActivateablePlugin allows you to automatically:
    * create a `is_active` flag (or name of your choice)
    * create timestamp &amp; user detail fields (e.g. `activated_by`, `activated_at`, ...) 
    * populate timestamps &amp; user details when `is_active` flag is toggled on a record.</description>
 <lead>
  <name>Prasad Gupte</name>
  <user>prasadgupte</user>
  <email>gupteprasad@gmail.com</email>
  <active>yes</active>
 </lead>
 <date>2010-09-22</date>
 <time>19:33:09</time>
 <version>
  <release>1.0.0</release>
  <api>1.0.0</api>
 </version>
 <stability>
  <release>stable</release>
  <api>stable</api>
 </stability>
 <license uri="http://www.symfony-project.com/license">MIT license</license>
 <notes>
* First public release.
 </notes>
 <contents>
  <dir baseinstalldir="sfActivateablePlugin/" name="/">
   <file baseinstalldir="sfActivateablePlugin/" md5sum="89b09d4d48e5259a3c659dfc65b0fc52" name="config/plugin_settings.yml.sample" role="data" />
   <file baseinstalldir="sfActivateablePlugin/" md5sum="8b40522acb23552e6e31ba2416387515" name="lib/Activateable.class.php" role="php" />
   <file baseinstalldir="sfActivateablePlugin/" md5sum="926a9eb938eccc9083d2b116e50246b3" name="lib/Listener/Activateable.class.php" role="php" />
   <file baseinstalldir="sfActivateablePlugin/" md5sum="17346d33da2ea3b9d880afc71e7022fd" name="LICENSE" role="doc" />
   <file baseinstalldir="sfActivateablePlugin/" md5sum="b836dfd2f324ae4ea975842197dcf8e2" name="README" role="doc" />
  </dir>
 </contents>
 <dependencies>
  <required>
   <php>
    <min>5.2.6</min>
   </php>
   <pearinstaller>
    <min>1.4.1</min>
   </pearinstaller>
   <package>
    <name>Symfony</name>
    <channel>pear.symfony-project.org</channel>
    <min>1.4</min>
    <recommended>1.4</recommended>
   </package>
  </required>
 </dependencies>
 <phprelease />
 <changelog>
  <release>
   <version>
    <release>1.0.0</release>
    <api>1.0.0</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2010-09-22</date>
   <license uri="http://www.symfony-project.com/license">MIT license</license>
   <notes>
* First public release.
   </notes>
  </release>
 </changelog>
</package>

我错过了一些标签吗?或者指定不正确的Symfony版本? Pl帮助

1 个答案:

答案 0 :(得分:0)

想出了几个错误: 1.包名是symfony而不是Symfony 2.最高版本也是必需的

如果您使用Pear Package Manager API:

$packagexml->addPackageDepWithChannel('required', 'symfony', 'pear.symfony-project.com', '1.4', '1.4', '1.4');