> I've discussed this (briefly) with Raymond, and it would of course > better fit in the File component. However, if we do that we'd need to > make Template (and perhaps others later as well) dependent on File which > I don't really like as we strive for as little depencies as possible. So > I see a few options here: > > 1. Do it in the Template component - as for now we only need it there > really. > 2. Add a method to the ezcFile class in the File component, and make > Template depend on File. > 3. Move the ezcFile class to the Base package, and implement the new > method there - this will result in some problems as then people > *have* to upgrade both File and Base at the same time to prevent > duplicate autoload files / class names. > > So for now I would go with the first solution, what do you all think?
The File component is really small. No other component makes a dependency for only 3 static functions implemented there. So, I really think we should move this functionality to Base. If we move the functionality, the class name would be 'ezcBaseFile'. In that case, there is no problem with the autoloads, and ezcFile and ezcBase can be updated independently. Raymond. -- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
