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

Skip to content

Document the new Class Map generator (Symfony 2.1) #1134

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

Closed
fabpot opened this issue Mar 7, 2012 · 6 comments
Closed

Document the new Class Map generator (Symfony 2.1) #1134

fabpot opened this issue Mar 7, 2012 · 6 comments
Labels
actionable Clear and specific issues ready for anyone to take them.
Milestone

Comments

@fabpot
Copy link
Member

fabpot commented Mar 7, 2012

A cookbook explaining why and how you can use the new class map generator (refs symfony/symfony#3394).

@wouterj
Copy link
Member

wouterj commented Jan 18, 2013

@weaverryan this should get a 'Actionable' and 'Missing Docs' label.

cordoval added a commit to cordoval/symfony-docs that referenced this issue Mar 30, 2013
@wouterj
Copy link
Member

wouterj commented Mar 9, 2014

Hmm, after looking at this I think this should be closed. Packages without proper autoloading should be configured using Composer. I don't see any value of the ClassMapGenerator in Symfony 2.3 and higher (since 2.2 and lower are not maintained anymore, we shouldn't worry about them).

What do you think @fabpot, @cordoval, @weaverryan ?

@weaverryan
Copy link
Member

I agree - is there a use-case for this class at this point? If there is, that would make documenting it much easier anyways :).

@xabbuh
Copy link
Member

xabbuh commented Jul 26, 2014

@fabpot Do you have an actual use-case for the class map generator?

@wouterj
Copy link
Member

wouterj commented Jul 26, 2014

@xabbuh assume you include a 3th party project which doesn't have autoloading. It doesn't follow the PEAR or PSR standards, so there is no way you can write an autoloader for it instead of hardcoding all paths for each classes. In such cases, you can simply use the class map generator, which will generate a class map of all classes of that project and their location, so you can use that map in your autoloader.

weaverryan added a commit that referenced this issue 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
@xabbuh
Copy link
Member

xabbuh commented Aug 15, 2014

With #4081 being merged, this can be closed.

@wouterj wouterj closed this as completed Aug 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Clear and specific issues ready for anyone to take them.
Projects
None yet
Development

No branches or pull requests

4 participants