Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Jwineman/pi 1032 host login broken #135

Merged
merged 3 commits into from
Mar 8, 2017

Conversation

jwineman
Copy link
Contributor

@jwineman jwineman commented Mar 8, 2017

No description provided.

@jwineman jwineman requested a review from thellimist March 8, 2017 17:49
$pluginAPI = new \CF\API\Plugin($cpanelIntegration);
$requestRouter->addRouter($pluginAPI, \CF\Cpanel\PluginRoutes::getRoutes(\CF\API\PluginRoutes::$routes));
$hostAPI = new \CF\API\Host($cpanelIntegration);
$requestRouter->addRouter($hostAPI, \CF\Cpanel\HostRoutes::$routes);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't get what this fixes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Magento creates all the objects dynamically, I have to use a different HTTP client, and I have to pass it in through the constructor. The old implementation hardcoded the constructor args so it complained when Magneto tried to pass a second argument.

@jwineman jwineman merged commit 5fd19b3 into master Mar 8, 2017
@jwineman jwineman deleted the jwineman/PI-1032-Host-Login-Broken branch March 8, 2017 18:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants