Task #5658
Inconsistent class names in sub namespaces (Part II)
Status:
Resolved
Priority:
Must have
Assignee:
Category:
-
Target version:
Start date:
2009-01-26
Due date:
% Done:
100%
Estimated time:
Sprint:
PHP Version:
Has patch:
Complexity:
Description
From the refactoring before alpha1 there are still a few edge cases concerning the naming of classes which turned out to be disturbing. Especially the rule "the main purpose of namespaces is categorization and ordering" was a bit neglected by allowing these special cases.
Currently allowed edge case Future class name ----------------------------------------------------------------------------------------- \F3\FLOW3\Object\Manager \F3\FLOW3\Object\ObjectManager \F3\Foo\Bar\Builder \F3\Foo\Bar\BarBuilder \F3\FLOW3\Object\Factory \F3\FLOW3\Object\Factory
Rename "AbstractFoo" to "FooAbstract"- Rename "InvalidFoo" to "InvalidFooException"
- Refactor class names which don't follow the above rules.
- Add the above rules to the CGL.
Files
Updated by Robert Lemke over 12 years ago
- Status changed from New to Accepted
- Target version set to 1.0 alpha 7
Updated by Robert Lemke over 12 years ago
- File migrateclassnames.php migrateclassnames.php added
Attached script which I used to migrate the class names of the FLOW3 Base distribution.
Updated by Robert Lemke over 12 years ago
- Status changed from Accepted to Resolved
- % Done changed from 50 to 100
Applied in changeset r3643.