Skip to content

Commit

Permalink
minor #4955 Fixed wrong API link (dosten)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

Fixed wrong API link

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all since 2.3
| Fixed tickets | -

The `makeDisposition` method is in the `ResponseHeaderBag` class, not in the `Response` class.

Commits
-------

543bc30 Update introduction.rst
  • Loading branch information
wouterj committed Feb 14, 2015
2 parents 0a85053 + 543bc30 commit 5d8456f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/http_foundation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ Serving Files
When sending a file, you must add a ``Content-Disposition`` header to your
response. While creating this header for basic file downloads is easy, using
non-ASCII filenames is more involving. The
:method:`Symfony\\Component\\HttpFoundation\\Response::makeDisposition`
:method:`Symfony\\Component\\HttpFoundation\\ResponseHeaderBag::makeDisposition`
abstracts the hard work behind a simple API::

use Symfony\Component\HttpFoundation\ResponseHeaderBag;
Expand Down

0 comments on commit 5d8456f

Please sign in to comment.