Skip to content

Commit 36c844d

Browse files
author
Slavey Karadzhov
committedJul 10, 2017
Added get/set server profile commands.
Related to zend-patterns/ZendServerSDK#97.
1 parent 2838a06 commit 36c844d

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed
 

‎config/api/version-1.10.config.php

+35-3
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,41 @@
335335
)
336336
)
337337
),
338-
339-
340-
338+
339+
340+
// Server Profile
341+
342+
'getServerProfile' => array(
343+
'options' => array(
344+
'route' => 'getServerProfile',
345+
'defaults' => array(
346+
'controller' => 'webapi-api-controller',
347+
'action' => 'getServerProfile',
348+
'apiMethod' => 'get'
349+
),
350+
'group' => 'server',
351+
'info' => array(
352+
'Gets the server profile: Development or Production .',
353+
)
354+
)
355+
),
356+
357+
'setServerProfile' => array(
358+
'options' => array(
359+
'route' => 'setServerProfile [--production=]',
360+
'defaults' => array(
361+
'controller' => 'webapi-api-controller',
362+
'action' => 'setServerProfile',
363+
'apiMethod' => 'post',
364+
'production' => 'true',
365+
),
366+
'group' => 'server',
367+
'info' => array(
368+
'Sets the server profile after the server was bootsraped: Development or Production.',
369+
array('--production', 'Production flag. If "true" - sets production mode, if "false" - development. By default TRUE.'),
370+
)
371+
)
372+
),
341373
)
342374
)
343375
)

0 commit comments

Comments
 (0)
Please sign in to comment.