Skip to content
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

Open
wants to merge 18 commits into
base: development
Choose a base branch
from

Conversation

tiberius19
Copy link
Collaborator

No description provided.

@tiberius19 tiberius19 requested a review from kaioken September 5, 2023 21:19
@kaioken kaioken changed the title add command to update locations tables [1.x] add command to update locations tables Sep 6, 2023
@tiberius19 tiberius19 requested a review from kaioken September 21, 2023 15:41
switch ($table) {
case '1':
$countries = new UpdateCountriesAction();
$countries->execute($app);
Copy link
Member

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':
Copy link
Member

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;
Copy link
Member

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

<?php

return [
'locationsUrl' => [
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants