Fabien POTENCIER wrote:
> Hi all,
>
> As I currently do some major changes, I want to give you some more
> information on what's going on in the trunk.
>
> One of main "problem" with the current symfony 1.0 design is the use of
> a lot of singleton objects and static classes/methods. It limits the
> ability to override those classes or to change the behavior of certain
> parts of the framework (sfRouting, sfI18N, sfContext for example).
Another related issue are things like the static list of what i18n
backends use a database and which dont etc.
public function createMessageSource($dir)
{
if (in_array(sfConfig::get('sf_i18n_source'), array('Creole',
'MySQL', 'SQLite', 'Doctrine')))
{
$messageSource =
sfMessageSource::factory(sfConfig::get('sf_i18n_source'),
sfConfig::get('sf_i18n_database', 'default'));
}
else
{
$messageSource =
sfMessageSource::factory(sfConfig::get('sf_i18n_source'), $dir);
}
..
}
regards,
Lukas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---