You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **note**: if you do not configure anything here, you will be using the [`SimpleJobLauncher`](https://github.com/yokai-php/batch/blob/0.x/src/Launcher/SimpleJobLauncher.php).
@@ -44,13 +42,19 @@ final class YourAppCode
44
42
private JobLauncherInterface $jobLauncher, // will inject the default job launcher
45
43
private JobLauncherInterface $simpleJobLauncher, // will inject the "simple" job launcher
46
44
private JobLauncherInterface $messengerJobLauncher, // will inject the "messenger" job launcher
47
-
private JobLauncherInterface $consoleJobLauncher, // will inject the "console" job launcher
48
-
private JobLauncherInterface $serviceJobLauncher, // will inject the "service" job launcher
49
45
) {
50
46
}
51
47
}
52
48
```
53
49
50
+
All `launchers` are configured using a DSN, every scheme has it's own associated factory.
51
+
- `simple://simple`: a [`SimpleJobLauncher`](https://github.com/yokai-php/batch/blob/0.x/src/Launcher/SimpleJobLauncher.php), no configuration allowed
52
+
- `messenger://messenger`: a [`DispatchMessageJobLauncher`](https://github.com/yokai-php/batch-symfony-messenger/blob/0.x/src/DispatchMessageJobLauncher.php), no configuration allowed
53
+
- `console://console`: a [`RunCommandJobLauncher`](https://github.com/yokai-php/batch-symfony-console/blob/0.x/src/RunCommandJobLauncher.php), configurable options:
54
+
- `log`: the filename where command output will be redirected (defaults to `batch_execute.log`)
55
+
- `service://service`: pointing to a service of your choice, configurable options:
56
+
- `service`: the id of the service to use (required, an exception will be thrown otherwise)
57
+
54
58
### JobExecution storage
55
59
56
60
You can have only one storage for your `JobExecution`, and you have several options:
0 commit comments