Fabian Lange wrote:
> Hi Fabien,
>
> > $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.
>
>
> why no func_get_args() ? the extra array is typing overhad
It's not.
Using array allows to have a clean API and allows to dynamically create
your plugin list:
$plugins = array();
$plugins[] = '...';
$this->enabledPlugins($plugins);
Fabien
> .: Fabian
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---