-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[ClassLoader] Added a class map file generator utility #2471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
*/ | ||
class ClassMapDumper | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have an extra blank line here
@TheSalla do you have time/interest to finish this up? |
sure (will attempt at least), but no sooner than tomorrow |
If you don't have any other suggestions or ideas, I'd consider it finished. |
// Find the classname | ||
while (($t = $tokens[++$i]) && is_array($t)) { | ||
if (T_STRING === $t[0]) { | ||
$class .= $t[1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your class have problems with extending over classes:
'Doctrine\DBAL\Driver\IBMDB2\DB2ConnectionDoctrineDBALDriverConnection' => string 'Z:\home\chat.loc\www\protected\App\Lib\doctrine-orm\Doctrine\DBAL\Driver\IBMDB2\DB2Connection.php'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. It is fixed now.
ping |
* | ||
* @author Gyula Sallai <[email protected]> | ||
*/ | ||
class ClassMapDumper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about renaming it to just ClassMap
as the main feature is the creation of the class map, not the dump part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I don't really like the idea, since that class name would suggest this class represents a single class map, instead of a tool of class map creation. I see your point, but it feels wrong to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ClassMapGenerator
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me.
@TheSalla: Can you rename the ClassMapDumper class to ClassMapGenerator and then squash your commit before the merge? Thanks. |
fixed cs Small refactoring for Finder support If class name found, return Find multiple classes and namespaces in the same file fixed problems with inheritance and non-php files Renamed ClassMapDumper to ClassMapGenerator fixed error with splfileinfo
@fabpot done. |
Commits ------- ba3b321 [ClassLoader] Added a class map file generator utility Discussion ---------- [ClassLoader] Added a class map file generator utility Bug fix: no Feature addition: yes Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: #2407 --------------------------------------------------------------------------- by lsmith77 at 2011-11-30T19:33:52Z @TheSalla do you have time/interest to finish this up? --------------------------------------------------------------------------- by thesalla at 2011-12-01T09:55:50Z sure (will attempt at least), but no sooner than tomorrow --------------------------------------------------------------------------- by stof at 2011-12-12T20:41:41Z @TheSalla @fabpot what is the state of this PR ? --------------------------------------------------------------------------- by thesalla at 2011-12-17T19:36:58Z If you don't have any other suggestions or ideas, I'd consider it finished. --------------------------------------------------------------------------- by lsmith77 at 2012-01-24T09:27:12Z ping --------------------------------------------------------------------------- by fabpot at 2012-02-02T08:21:38Z @TheSalla: Can you rename the ClassMapDumper class to ClassMapGenerator and then squash your commit before the merge? Thanks. --------------------------------------------------------------------------- by thesalla at 2012-02-04T12:55:48Z @fabpot done.
…pGenerator class (xabbuh) This PR was merged into the 2.3 branch. Discussion ---------- [Components][ClassLoader] documentation for the ClassMapGenerator class | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes (symfony/symfony#2471) | Applies to | all | Fixed tickets | #1134 Commits ------- 2ebe6c3 documentation for the ClassMapGenerator class
Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #2407