Permalink
Browse files

minor #4955 Fixed wrong API link (dosten)

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 5d8456fe3ca6f6bd30cf13d6317e0776c629ed0c
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/http_foundation/introduction.rst
@@ -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;

0 comments on commit 5d8456f

Please sign in to comment.