I typed the installation command but came across the following:
cmd>> symfony plugin:install sfGuardPlugin
>> plugin installing plugin "sfGuardPlugin"
>> sfPearFrontendPlugin downloading sfGuardPlugin-3.0.0.tgz ...
>> sfPearFrontendPlugin Starting to download sfGuardPlugin-3.0.0.tgz (18,752 bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 18,752 bytes
>> sfPearFrontendPlugin symfony-plugins/sfGuardPlugin requires package
>> sfPearFrontendPlugin "symfony/symfony" (version >= 1.2.0, version <= 1.3.0,
>> sfPearFrontendPlugin excluded versions: 1.3.0), installed version is 1.1.4
Plugin "sfGuardPlugin" installation failed: No valid packages found
The problem here was simply that the latest version of the package was being used. That particular version (3.0.0) is meant for symfony 1.2 which is still being developed. Since I am using the latest stable release of symfony (1.1.4), the trick is simply to specify which release to install. To work this out, simply check out the sfGuardPlugin changelog page to find the correct release version number (2.2.0).
cmd>> symfony plugin:install sfGuardPlugin --release=2.2.0
And hey presto, it worked! Excellent. More on symfony soon...
Thoughts in the meantime?
Thank you for this article. It helpted me a lot.
ReplyDeleteBest regards!
Hi Nikolay,
ReplyDeleteGlad to hear it was useful! :-)
Best regards,
Elinor
Nice tip, i spend few hours trying to install sfGuardPlugin with this problem. Thanks!
ReplyDeleteHi,
ReplyDeleteGlad it helped! :-)
Elinor
Thank you very much!
ReplyDeleteThanks, this helped out a bunch as I really didn't want to install the unstable build...
ReplyDeleteExcellent, really glad it was of use to you! :-)
ReplyDeleteThank you very much!
ReplyDelete:-)
ReplyDelete