Skip to content

Install script fix#2169

Merged
StijnVrolijk merged 2 commits intomasterfrom
install-script-fix
Aug 7, 2017
Merged

Install script fix#2169
StijnVrolijk merged 2 commits intomasterfrom
install-script-fix

Conversation

@StijnVrolijk
Copy link
Copy Markdown
Contributor

When installing Fork through a script (like on the demo) there's a bit of a hitch.

The Doctrine connection gets created in ForkCMS\Bundle\InstallerBundle/Service/InstallerConnectionFactory.php but that relies on the installation data getting created in the InstallerController. Since we're not using the controller to install Fork, it's not set so we have to set it manually. It does create a few useless calls when actually using the controller (The controller fetches its data, passes it to the installer and the installer passes it back to the controller) but that shouldn't matter too much.

I've also removed the InstallerConnection since it was used for fixing the remove_cache tool which is removed in Fork 5 and it prevented Doctrine from creating an actual connection when installing

@StijnVrolijk StijnVrolijk added this to the 5.0.1 milestone Aug 7, 2017
@mention-bot
Copy link
Copy Markdown

@StijnVrolijk, thanks for your PR! By analyzing the history of the files in this pull request, we identified @carakas, @WouterSioen and @jessedobbelaere to be potential reviewers.

@StijnVrolijk StijnVrolijk merged commit ab8c8ed into master Aug 7, 2017
@carakas carakas deleted the install-script-fix branch August 14, 2017 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants