Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Fixed issues #57, #58 and #67. #59

Closed
wants to merge 16 commits into from
Closed

Conversation

tasselchof
Copy link
Contributor

No description provided.

Copy link
Member

@weierophinney weierophinney left a comment

Choose a reason for hiding this comment

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

These changes make sense based on the reported issues. However, we need unit tests for the changes to ApiFactory, to ensure that the warning/notice does not come back again with a future change.

@@ -102,10 +102,10 @@ public function createApi($apiName, $apiVersion = 1)
$api->setName($apiName);

$serviceConfigs = [];
if ($this->config['zf-rest']) {
if (isset($this->config['zf-rest']) && !empty($this->config['zf-rest'])) {
Copy link
Member

Choose a reason for hiding this comment

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

This can be simplfied to:

if (! empty($this->config['zf-rest'])) {

(as can the next change)

@tasselchof
Copy link
Contributor Author

I have no time now to make test exactly for this future, but I think that these changes still better be merged as current tests are passing.

@tasselchof tasselchof changed the title Fixed issues #57 and #58. Fixed issues #57, #58 and #67. Apr 1, 2018
weierophinney added a commit that referenced this pull request May 7, 2018
weierophinney added a commit that referenced this pull request May 7, 2018
weierophinney added a commit that referenced this pull request May 7, 2018
@weierophinney
Copy link
Member

Thanks, @tasselchof; merged to develop for release with 1.3.0.

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