Francois Zaninotto wrote:
> Devs,
>
> After checking Fabien's commit (r11644) on plugin activation in
> symfony 1.2, I have a few remarks:
>
> - The compat 10 plugin should enable all plugins by default -
> otherwise, the compatibility is broken
What compatibility? For each new symfony version, we have some changes
that need some work to upgrade.
And even if we enable all the plugins when enabling the compat 1.0
plugin, it won't "solve" the problem for 1.1.
That being said, I have added an enableAllPluginsExcept() method to ease
the upgrade process. To make symfony behave like in 1.0 and 1.1, just
add this line:
$this->enableAllPluginsExcept('sfDoctrinePlugin');
see http://trac.symfony-project.org/changeset/11667
>
> - If I have to enable/disable 10 plugins, I'd like the
> `ProjectConfiguration::enablePlugin()` to accept more than one
> argument, so that I can write
>
> $this->enablePlugin('sfDoctrinePlugin', 'sfDoctrineGuardPlugin',
> 'sfDoctrineSimpleCMSPlugin');
>
> instead of
>
> $this->enablePlugin('sfDoctrinePlugin');
> $this->enablePlugin('sfDoctrineGuardPlugin');
> $this->enablePlugin('sfDoctrineSimpleCMSPlugin');
>
> Because of that, you might want to add an 's' to the two method names.
I have added an 's' to the method as they now accept one plugin name or
an array of plugin names.
>
> - Shouldn't the disabled plugin classes be removed from the autoload?
sure. I have created a ticket for this issue as I don't have any good
idea on how to fix it.
http://trac.symfony-project.org/ticket/4416
>
> - I though that `create_function()` was banned due to memory leaks.
> Is it an acceptable practice now?
Why? We use create_function a lot in symfony.
Fabien
>
> François
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---