On 6 Feb., 10:39, Fabien POTENCIER <[EMAIL PROTECTED] project.com> wrote: > Matthias N. wrote: > > On 6 Feb., 10:27, Fabien POTENCIER <[EMAIL PROTECTED] > > project.com> wrote: > >> As you can retrieve PHP version with PHP_VERSION, SYMFONY_VERSION seems > >> the best compromise. > > >> If we want a class constant, the only possibility is > >> sfCoreAutoload::VERSION as this is the very first class to be loaded. > >> sfContext is loaded much later and maybe not loaded at all if you just > >> create a configuration object. > > > As you already know the answer, then why do you ask? ;-) > > sfCoreAutoload::VERSION is also fine for me.
People might think VERSION refers to autoload - not to symfony. So the SYMFONY_VERSION constant is easier to understand, no "danger" to mix it and therefore IMO the best choice. Matthias --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
