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

Skip to content

Changing description of autoloading to "The composer way" #1996

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 7 commits into from
Dec 16, 2012
Merged

Changing description of autoloading to "The composer way" #1996

merged 7 commits into from
Dec 16, 2012

Conversation

Sgoettschkes
Copy link
Contributor

As mentioned by @weaverryan in #1176, there are some mentioned of the old app/autoload.php. I searched for those and replaced them with the correct vendor/autoload.php.

The two bigger changes including some more description of Composer and how it all works together. Both files are suggestions and I am happy to change them according to your feedback.


A bundle can live *anywhere* as long as it can be autoloaded (via the
autoloader configured at ``app/autoload.php``).

Copy link
Member

Choose a reason for hiding this comment

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

This should be kept IMO

@Sgoettschkes
Copy link
Contributor Author

I reverted the changes. I am sorry for the inconvenience as some changes were really wrong.

I was under the impression that the app/autoload.php should remain unchanged and composer should be used in any case to load all files.

@stof
Copy link
Member

stof commented Dec 3, 2012

@Sgoettschkes app/autoload.php can be changed if you need to add some custom stuff (like the intl fallback registered in the SE). But you will generally not need to configure custom stuff by hand

@@ -22,8 +22,7 @@ on top of the previous one.
.. tip::

Autoloading is not managed by the framework directly; it's done by using
Composer's autoloader (``vendor/autoload.php``), which is included in
the ``src/autoload.php`` file.
Copy link
Member

Choose a reason for hiding this comment

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

This is still true (except that src/autoload.php doesn't exists, it should be app/autoload.php)

weaverryan added a commit that referenced this pull request Dec 16, 2012
Changing description of autoloading to "The composer way"
@weaverryan weaverryan merged commit c6cb402 into symfony:2.1 Dec 16, 2012
@weaverryan
Copy link
Member

Another great one Sebastian, and another closed issue - thanks!

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.

4 participants