Skip to content

Added a note about not using the ClassLoader component #7383

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
wants to merge 3 commits into from

Conversation

javiereguiluz
Copy link
Member

This fixes #5949.

The component will be deprecated soon, so I guess it's OK to start warning our users.


If your application uses Composer's class loading mechanism and PHP 7 caching
features, there's no need to use this component to load classes. That's why
this component may be deprecated anytime soon.
Copy link
Member

Choose a reason for hiding this comment

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

The last sentence sounds a bit vague. Shouldn't we just omit it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've reworded it ... because the component is deprecated as of symfony/symfony#21353

.. caution::

The ClassLoader component was deprecated in Symfony 3.3 and it will be
removed in 4.0. Alternatively, use the Composer's class loading mechanism.
Copy link
Member

Choose a reason for hiding this comment

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

remove "the" here

@@ -7,6 +7,11 @@ The ClassLoader Component
The ClassLoader component provides tools to autoload your classes and
cache their locations for performance.

.. caution::

The ClassLoader component was deprecated in Symfony 3.3 and it will be
Copy link
Member

Choose a reason for hiding this comment

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

Technically, using the past tense here is not correct as 3.3 was released yet. Though I think that's okay as it allows us not to update the sentence in May again. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree. It's not perfect, but it's "good enough".

@javiereguiluz javiereguiluz added this to the 3.3 milestone Feb 1, 2017
@xabbuh
Copy link
Member

xabbuh commented Feb 2, 2017

Okay, let's keep it as is.

Status: Reviewed

xabbuh added a commit that referenced this pull request Feb 3, 2017
…aviereguiluz)

This PR was squashed before being merged into the 2.7 branch (closes #7383).

Discussion
----------

Added a note about not using the ClassLoader component

This fixes #5949.

The component will be deprecated soon, so I guess it's OK to start warning our users.

Commits
-------

e96cbf8 Added a note about not using the ClassLoader component
xabbuh added a commit that referenced this pull request Feb 3, 2017
@xabbuh
Copy link
Member

xabbuh commented Feb 3, 2017

Thank you Javier. I made a minor rewording in 0866fb8. Please let me know if you do not agree.

@xabbuh xabbuh closed this Feb 3, 2017
xabbuh added a commit that referenced this pull request Feb 3, 2017
* 2.7:
  [#7427] fix line length
  Add apcu cache driver to doctrine config reference
  Change type of arguments min and max
  [#7383] minor rewording
  Added a note about not using the ClassLoader component
  More clear description of factory service creation
  [#7376] minor wording improvement
  Added a tip about the expanded YAML syntax
  Added a minor help note about Request::setTrustedProxies
  Fix Apache 2.4 UDS instructions
  See #7362 bundles/override > Rewrite translations block
xabbuh added a commit that referenced this pull request Feb 3, 2017
* 2.8:
  [#7427] fix line length
  Add apcu cache driver to doctrine config reference
  Change type of arguments min and max
  [#7383] minor rewording
  Added a note about not using the ClassLoader component
  Update guard_authentication.rst
  More clear description of factory service creation
  [#7376] minor wording improvement
  Added a tip about the expanded YAML syntax
  Added a minor help note about Request::setTrustedProxies
  Fix Apache 2.4 UDS instructions
  See #7362 bundles/override > Rewrite translations block
xabbuh added a commit that referenced this pull request Feb 3, 2017
* 3.1:
  [#7427] fix line length
  Add apcu cache driver to doctrine config reference
  Change type of arguments min and max
  [#7383] minor rewording
  Added a note about not using the ClassLoader component
  Update guard_authentication.rst
  More clear description of factory service creation
  [#7376] minor wording improvement
  Added a tip about the expanded YAML syntax
  Added a minor help note about Request::setTrustedProxies
  Fix Apache 2.4 UDS instructions
  remove unused options parameter from loadManifest
  See #7362 bundles/override > Rewrite translations block
xabbuh added a commit that referenced this pull request Feb 3, 2017
* 3.2:
  [#7427] fix line length
  Add apcu cache driver to doctrine config reference
  Change type of arguments min and max
  [#7383] minor rewording
  Added a note about not using the ClassLoader component
  Update guard_authentication.rst
  More clear description of factory service creation
  [#7376] minor wording improvement
  Added a tip about the expanded YAML syntax
  Added a minor help note about Request::setTrustedProxies
  Fix Apache 2.4 UDS instructions
  Fix doc for yaml parameters constants usage
  remove unused options parameter from loadManifest
  Tweaks based on feedback!
  Covering two missing adapters introduced in 3.2
  See #7362 bundles/override > Rewrite translations block
@javiereguiluz javiereguiluz deleted the fix_5949 branch May 24, 2018 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants