-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.x] add command to update locations tables #526
base: development
Are you sure you want to change the base?
Conversation
switch ($table) { | ||
case '1': | ||
$countries = new UpdateCountriesAction(); | ||
$countries->execute($app); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tiberius19 pass the app at the constructor
$table = $this->argument('tableNumber') ?? null; | ||
|
||
switch ($table) { | ||
case '1': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tiberius19 use match so you can test how it works
{ | ||
$appUid = $this->argument('app_uuid'); | ||
$app = Apps::getByUuid($appUid); | ||
$table = $this->argument('tableNumber') ?? null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tiberius19 instead of # use strings so users know what to use
config/locations.php
Outdated
<?php | ||
|
||
return [ | ||
'locationsUrl' => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tiberius19 this is not needed right?
No description provided.