File tree 3 files changed +31
-6
lines changed
3 files changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Using the Finder Component
20
20
21
21
**1. ** If you're creating a new project, create a new empty directory for it.
22
22
23
- **2. ** Open a terminal and use Composer to grab the library.
23
+ **2. ** Open a terminal, step into this directory and use Composer to grab the library.
24
24
25
25
.. code-block :: terminal
26
26
@@ -43,18 +43,26 @@ the ``vendor/autoload.php`` file that was generated by Composer. This file
43
43
takes care of autoloading all of the libraries so that you can use them
44
44
immediately::
45
45
46
- // File example: src/script.php
47
-
48
- // update this to the path to the "vendor/"
49
- // directory, relative to this file
46
+ // Project structure example:
47
+ // my_project/
48
+ // data/
49
+ // ... # Some project data
50
+ // src/
51
+ // my_script.php # Main entry point
52
+ // vendor/
53
+ // autoload.php # Autoloader generated by Composer
54
+ // ... # Packages downloaded by Composer
55
+
56
+ // File example: src/my_script.php
57
+ // Autoloader relative path to this PHP file
50
58
require_once __DIR__.'/../vendor/autoload.php';
51
59
52
60
use Symfony\Component\Finder\Finder;
53
61
54
62
$finder = new Finder();
55
63
$finder->in('../data/');
56
64
57
- // ...
65
+ // rest of your PHP code ...
58
66
59
67
Now what?
60
68
---------
Original file line number Diff line number Diff line change @@ -724,6 +724,18 @@ and should not be retried. If you throw
724
724
:class: `Symfony\\ Component\\ Messenger\\ Exception\\ UnrecoverableMessageHandlingException `,
725
725
the message will not be retried.
726
726
727
+ Forcing Retrying
728
+ ~~~~~~~~~~~~~~~~
729
+
730
+ .. versionadded :: 5.1
731
+
732
+ The ``RecoverableMessageHandlingException `` was introduced in Symfony 5.1.
733
+
734
+ Sometimes handling a message must fail in a way that you *know * is temporary
735
+ and must be retried. If you throw
736
+ :class: `Symfony\\ Component\\ Messenger\\ Exception\\ RecoverableMessageHandlingException `,
737
+ the message will always be retried.
738
+
727
739
.. _messenger-failure-transport :
728
740
729
741
Saving & Retrying Failed Messages
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ as the value to the current URL:
74
74
75
75
http://example.com/somewhere?_switch_user=thomas
76
76
77
+ .. tip ::
78
+
79
+ Instead of adding a ``_switch_user `` query string parameter, you can pass
80
+ the username in a ``HTTP_X_SWITCH_USER `` header.
81
+
77
82
To switch back to the original user, use the special ``_exit `` username:
78
83
79
84
.. code-block :: text
You can’t perform that action at this time.
0 commit comments