Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Feb 6, 2012

Conversation

sallaigy
Copy link
Contributor

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #2407

*/
class ClassMapDumper
{

Copy link
Member

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

@lsmith77
Copy link
Contributor

@TheSalla do you have time/interest to finish this up?

@sallaigy
Copy link
Contributor Author

sallaigy commented Dec 1, 2011

sure (will attempt at least), but no sooner than tomorrow

@stof
Copy link
Member

stof commented Dec 12, 2011

@TheSalla @fabpot what is the state of this PR ?

@sallaigy
Copy link
Contributor Author

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];

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'

Copy link
Contributor Author

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.

@lsmith77
Copy link
Contributor

ping

*
* @author Gyula Sallai <[email protected]>
*/
class ClassMapDumper
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClassMapGenerator ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

@fabpot
Copy link
Member

fabpot commented Feb 2, 2012

@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
@sallaigy
Copy link
Contributor Author

sallaigy commented Feb 4, 2012

@fabpot done.

fabpot added a commit that referenced this pull request Feb 6, 2012
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.
@fabpot fabpot merged commit ba3b321 into symfony:master Feb 6, 2012
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Aug 15, 2014
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants