File tree Expand file tree Collapse file tree 3 files changed +1
-56
lines changed Expand file tree Collapse file tree 3 files changed +1
-56
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ You can install the component in many different ways:
33
33
Usage
34
34
-----
35
35
36
- .. versionadded :: 2.1
37
- The ``useIncludePath `` method was added in Symfony 2.1.
38
-
39
36
Registering the :class: `Symfony\\ Component\\ ClassLoader\\ UniversalClassLoader `
40
37
autoloader is straightforward::
41
38
@@ -45,8 +42,7 @@ autoloader is straightforward::
45
42
46
43
$loader = new UniversalClassLoader();
47
44
48
- // You can search the include_path as a last resort.
49
- $loader->useIncludePath(true);
45
+ // register namespaces and prefixes here - see below
50
46
51
47
$loader->register();
52
48
Original file line number Diff line number Diff line change @@ -335,46 +335,6 @@ To redirect the client to another URL, you can use the
335
335
336
336
$response = new RedirectResponse('http://example.com/');
337
337
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
-
378
338
Session
379
339
-------
380
340
Original file line number Diff line number Diff line change @@ -61,14 +61,3 @@ instead::
61
61
<?php echo 'Hello World'; ?>
62
62
EOF);
63
63
$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();
You can’t perform that action at this time.
0 commit comments