Hello,
I hope you are going to keep the feature !
1. That help to keep the code clean (Imagine a checkout process in one
single file ...)
2. easy to find the file in eclipse alt+shift+r is your friend
(textmate offer the same feature...)
3. easy way to avoid errors when working with other devs.
4. it will save overhead by not loading lot of unnecessary code
however there is no way to solve the problem (no namespace in php) excepts :
- by throwing an exception for duplicate class name during the same request.
- or by renaming the class ...
Thomas
On Feb 4, 2008 6:35 PM, Ian P. Christian <[EMAIL PROTECTED]> wrote:
>
> Fabien POTENCIER wrote:
>
> > That's a great use case, indeed. So, we need to fix it ;-) Do you have a
> > patch?
>
> Well, whilst working on that... look what we found:
>
> sfController.class.php
> 313
> 314 // fix for same name classes
> 315 $moduleClass = $moduleName.'_'.$class;
> 316 if (class_exists($moduleClass, false))
> 317 {
> 318 $class = $moduleClass;
> 319 }
> 320
>
> So, this already works - but.. what we should do is remove the old
> behaviour, having two classes with the same name should obviously not happen
>
>
> --
>
> Ian P. Christian ~ http://pookey.co.uk
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---