File tree Expand file tree Collapse file tree 3 files changed +0
-71
lines changed Expand file tree Collapse file tree 3 files changed +0
-71
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ class CloudTasksConnector implements ConnectorInterface
99{
1010 public function connect (array $ config )
1111 {
12- Config::validate ($ config );
13-
1412 // The handler is the URL which Cloud Tasks will call with the job payload. This
1513 // URL of the handler can be manually set through an environment variable, but
1614 // if it is not then we will choose a sensible default (the current app url)
Original file line number Diff line number Diff line change 99
1010class Config
1111{
12- public static function validate (array $ config ): void
13- {
14- if (empty ($ config ['project ' ])) {
15- throw new Error (Errors::invalidProject ());
16- }
17-
18- if (empty ($ config ['location ' ])) {
19- throw new Error (Errors::invalidLocation ());
20- }
21-
22- if (empty ($ config ['service_account_email ' ]) && empty ($ config ['app_engine ' ])) {
23- throw new Error (Errors::serviceAccountOrAppEngine ());
24- }
25- }
26-
2712 /**
2813 * @param Closure|string $handler
2914 */
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments