Our project organizes its components according to symfony's "separate
file" system:

modules/repository/actions/editAction.class.php
modules/repository/actions/listAction.class.php
modules/repository/actions/contextComponent.class.php
[...]

(vs. modules/repository/actions/actions.class.php, modules/repository/
actions/components.class.php, etc.)

Unfortunately we recently started getting fatal errors due to classes
of the same name:

class "editAction" in modules/repository/actions/editAction.class.php
and modules/actor/actions/editAction.class.php
class "contextComponent" in modules/repository/actions/
contextComponent.class.php and modules/actor/actions/
contextComponent.class.php

These errors keep us from forwarding from actions in one module to
actions of the same name in another module, and from including two
components of the same name from different modules in the same page.

We don't want to refactor our components into single files (modules/
repository/actions/actions.class.php, modules/repository/actions/
components.class.php, etc.) Faced with the choice between refactoring
our components and renaming them, we chose to add the module name to
the class names of all our components:

"editAction" -> "RepositoryEditAction"
"contextComponent" -> "RepositoryContextComponent"

We then applied this patch to our symfony installation:
http://cgi.sfu.ca/~jdbates/tmp/symfony/200711220/component-class-name.patch

I'm not sure how symfony's developers regard this backwards
incompatible change. The current state of many classes with
conflicting names is an important issue for us, and symfony is
apparently undergoing many changes right now. Is this change a
candidate for 1.1? 2.0? A non-issue?

Much thanks, Jack
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to