Skip to content

Commit dba34b8

Browse files
committed
Merge branch 'master' of https://github.com/tasselchof/zf-apigility-documentation into develop
2 parents ce2428d + e2e1f83 commit dba34b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/module.config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'options' => [
2020
'route' => '/documentation[/:api[-v:version][/:service]]',
2121
'constraints' => [
22-
'api' => '[a-zA-Z][a-zA-Z0-9_.]+',
22+
'api' => '[a-zA-Z][a-zA-Z0-9_.%]+',
2323
],
2424
'defaults' => [
2525
'controller' => Controller::class,

src/ApiFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ public function createApi($apiName, $apiVersion = 1)
102102
$api->setName($apiName);
103103

104104
$serviceConfigs = [];
105-
if ($this->config['zf-rest']) {
105+
if (!empty($this->config['zf-rest'])) {
106106
$serviceConfigs = array_merge($serviceConfigs, $this->config['zf-rest']);
107107
}
108-
if ($this->config['zf-rpc']) {
108+
if (!empty($this->config['zf-rpc'])) {
109109
$serviceConfigs = array_merge($serviceConfigs, $this->config['zf-rpc']);
110110
}
111111

0 commit comments

Comments
 (0)