Skip to content

Commit f4c4b6c

Browse files
committed
Remove config validation
1 parent cecf786 commit f4c4b6c

File tree

3 files changed

+0
-71
lines changed

3 files changed

+0
-71
lines changed

src/CloudTasksConnector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

src/Config.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,6 @@
99

1010
class 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
*/

tests/ConfigTest.php

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)