revert back callback changes
This commit is contained in:
parent
5fbf961a9a
commit
0570e26a48
8 changed files with 8 additions and 8 deletions
|
@ -25,7 +25,7 @@ class Doctor extends Action
|
|||
$this
|
||||
->desc('Validate server health')
|
||||
->inject('register')
|
||||
->callback($this->action);
|
||||
->callback(fn (Registry $register) => $this->action($register));
|
||||
}
|
||||
|
||||
public function action(Registry $register): void
|
||||
|
|
|
@ -28,7 +28,7 @@ class Install extends Action
|
|||
->param('organization', 'appwrite', new Text(0), 'Docker Registry organization', true)
|
||||
->param('image', 'appwrite', new Text(0), 'Main appwrite docker image', true)
|
||||
->param('interactive', 'Y', new Text(1), 'Run an interactive session', true)
|
||||
->callback($this->action);
|
||||
->callback(fn ($httpPort, $httpsPort, $organization, $image, $interactive) => $this->action($httpPort, $httpsPort, $organization, $image, $interactive));
|
||||
}
|
||||
|
||||
public function action(string $httpPort, string $httpsPort, string $organization, string $image, string $interactive): void
|
||||
|
|
|
@ -25,7 +25,7 @@ class Maintenance extends Action
|
|||
$this
|
||||
->desc('Schedules maintenance tasks and publishes them to resque')
|
||||
->inject('dbForConsole')
|
||||
->callback($this->action);
|
||||
->callback(fn (Database $dbForConsole) => $this->action($dbForConsole));
|
||||
}
|
||||
|
||||
public function action(Database $dbForConsole): void
|
||||
|
|
|
@ -25,7 +25,7 @@ class Migrate extends Action
|
|||
->desc('Migrate Appwrite to new version')
|
||||
->param('version', APP_VERSION_STABLE, new Text(8), 'Version to migrate to.', true)
|
||||
->inject('register')
|
||||
->callback($this->action);
|
||||
->callback(fn ($version, $register) => $this->action($version, $register));
|
||||
}
|
||||
|
||||
public function action(string $version, Registry $register)
|
||||
|
|
|
@ -36,7 +36,7 @@ class SDKs extends Action
|
|||
{
|
||||
$this
|
||||
->desc('Generate Appwrite SDKs')
|
||||
->callback($this->action);
|
||||
->callback(fn () => $this->action());
|
||||
}
|
||||
|
||||
public function action(): void
|
||||
|
|
|
@ -21,7 +21,7 @@ class SSL extends Action
|
|||
$this
|
||||
->desc('Validate server certificates')
|
||||
->param('domain', App::getEnv('_APP_DOMAIN', ''), new Hostname(), 'Domain to generate certificate for. If empty, main domain will be used.', true)
|
||||
->callback($this->action);
|
||||
->callback(fn ($domain) => $this->action($domain));
|
||||
}
|
||||
|
||||
public function action(string $domain): void
|
||||
|
|
|
@ -35,7 +35,7 @@ class Specs extends Action
|
|||
->param('version', 'latest', new Text(16), 'Spec version', true)
|
||||
->param('mode', 'normal', new WhiteList(['normal', 'mocks']), 'Spec Mode', true)
|
||||
->inject('register')
|
||||
->callback($this->action);
|
||||
->callback(fn (string $version, string $mode, Registry $register) => $this->action($version, $mode, $register));
|
||||
}
|
||||
|
||||
public function action(string $version, string $mode, Registry $register): void
|
||||
|
|
|
@ -28,7 +28,7 @@ class Usage extends Action
|
|||
->inject('dbForConsole')
|
||||
->inject('influxdb')
|
||||
->inject('logError')
|
||||
->callback($this->action);
|
||||
->callback(fn ($type, $dbForConsole, $influxDB, $logError) => $this->action($type, $dbForConsole, $influxDB, $logError));
|
||||
}
|
||||
|
||||
protected function aggregateTimeseries(UtopiaDatabase $database, InfluxDatabase $influxDB, callable $logError): void
|
||||
|
|
Loading…
Reference in a new issue