Skip to content

Commit 6e11de6

Browse files
committed
[2.1] Removing a few things for 2.1 that slipped into the 2.0 docs. I'll merge this commit into master (since 2.0 always merges into master), but then revert it
1 parent 1a45417 commit 6e11de6

File tree

3 files changed

+1
-56
lines changed

3 files changed

+1
-56
lines changed

components/class_loader.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ You can install the component in many different ways:
3333
Usage
3434
-----
3535

36-
.. versionadded:: 2.1
37-
The ``useIncludePath`` method was added in Symfony 2.1.
38-
3936
Registering the :class:`Symfony\\Component\\ClassLoader\\UniversalClassLoader`
4037
autoloader is straightforward::
4138

@@ -45,8 +42,7 @@ autoloader is straightforward::
4542

4643
$loader = new UniversalClassLoader();
4744

48-
// You can search the include_path as a last resort.
49-
$loader->useIncludePath(true);
45+
// register namespaces and prefixes here - see below
5046

5147
$loader->register();
5248

components/http_foundation/introduction.rst

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -335,46 +335,6 @@ To redirect the client to another URL, you can use the
335335

336336
$response = new RedirectResponse('http://example.com/');
337337

338-
Streaming a Response
339-
~~~~~~~~~~~~~~~~~~~~
340-
341-
.. versionadded:: 2.1
342-
Support for streamed responses was added in Symfony 2.1.
343-
344-
The :class:`Symfony\\Component\\HttpFoundation\\StreamedResponse` class allows
345-
you to stream the Response back to the client. The response content is
346-
represented by a PHP callable instead of a string::
347-
348-
use Symfony\Component\HttpFoundation\StreamedResponse;
349-
350-
$response = new StreamedResponse();
351-
$response->setCallback(function () {
352-
echo 'Hello World';
353-
flush();
354-
sleep(2);
355-
echo 'Hello World';
356-
flush();
357-
});
358-
$response->send();
359-
360-
Downloading Files
361-
~~~~~~~~~~~~~~~~~
362-
363-
.. versionadded:: 2.1
364-
The ``makeDisposition`` method was added in Symfony 2.1.
365-
366-
When uploading a file, you must add a ``Content-Disposition`` header to your
367-
response. While creating this header for basic file downloads is easy, using
368-
non-ASCII filenames is more involving. The
369-
:method:`Symfony\\Component\\HttpFoundation\\Response::makeDisposition`
370-
abstracts the hard work behind a simple API::
371-
372-
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
373-
374-
$d = $response->headers->makeDisposition(ResponseHeaderBag::DISPOSITION_ATTACHMENT, 'foo.pdf');
375-
376-
$response->headers->set('Content-Disposition', $d);
377-
378338
Session
379339
-------
380340

components/process.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,3 @@ instead::
6161
<?php echo 'Hello World'; ?>
6262
EOF);
6363
$process->run();
64-
65-
.. versionadded:: 2.1
66-
The ``ProcessBuilder`` class has been as of 2.1.
67-
68-
To make your code work better on all platforms, you might want to use the
69-
:class:`Symfony\\Component\\Process\\ProcessBuilder` class instead::
70-
71-
use Symfony\Component\Process\ProcessBuilder;
72-
73-
$builder = new ProcessBuilder(array('ls', '-lsa'));
74-
$builder->getProcess()->run();

0 commit comments

Comments
 (0)