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
9
9
{
10
10
public function connect (array $ config )
11
11
{
12
- Config::validate ($ config );
13
-
14
12
// The handler is the URL which Cloud Tasks will call with the job payload. This
15
13
// URL of the handler can be manually set through an environment variable, but
16
14
// 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 9
9
10
10
class Config
11
11
{
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
-
27
12
/**
28
13
* @param Closure|string $handler
29
14
*/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments