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

Add 'no-interaction' mode to configure wizard #807

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tbfpartner
Copy link

1. Why is this change necessary?

Added the possibility to run the wizard in 'no-interaction' mode. This should help to run the wizard directly from code, for example when using uvdesk dockerized. Just add php bin/console uvdesk:configure-helpdesk -n to the entrypoint.sh script

2. What does this change do, exactly?

  • Adds a "--no-interaction" switch to the "uvdesk:configure-helpdesk" command
  • Makes all three steps (in Console/Wizard/ConfigureHelpdesk.php) to check if "no-interaction mode" is active. If yes, skip the questions and just do it.
  • Modified getUpdatedDatabaseCredentials to first check for real ENVs before taking it from a .env

changes to bundles.php
I've added Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['all' => true], to the bundles.php. This seems to fix an error when running the command php bin/console doctrine:fixtures:load --append

3. Please link to the relevant issues (if any).

none

the 'no-interactive' mode just assumes, all the actions need to be done. usefull for running the wizard automatically (eg. through docker entrypoint script)
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.

1 participant