Development

#3492 (Initialize I18N-Factory before Routing-Factory)

You must first sign up to be able to contribute.

Ticket #3492 (closed enhancement: fixed)

Opened 4 days ago

Last modified 4 days ago

Initialize I18N-Factory before Routing-Factory

Reported by: hardrock Assigned to: fabien
Priority: minor Milestone: 1.1.0 RC2
Component: configuration Version: 1.1.0 RC1
Keywords: Cc:
Qualification: Unreviewed

Description

I wrote my own custom sfRoutingI18nConfigHandler that makes use of the I18N-class to translate my routes. Unfortunately in symfony 1.1, the Routing-Factory is initialized before the I18N-Factory, thus I cannot access the (not yet existing) I18N-object.

Initializing the I18N-Object before the Routing would be the solution for this problem and did not cause any trouble for me. Could this patch be applied to symfony 1.1?

sfFactoryConfigHandler, move 'i18n' in front of 'routing' in line 44:

$factories = array('logger', 'i18n', 'routing', 'controller', 'request', 'response', 'storage', 'user', 'view_cache');

Change History

05/08/08 13:58:57 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 1.1.0 RC2.

in r8862