Changeset 796
- Timestamp:
- Jan 10, 2017, 4:11:48 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/kernel/configuration.rst
r784 r796 86 86 * ``cors``: Define if the ZOO-Kernel should support `Cross-Origin 87 87 Resource Sharing <https://www.w3.org/TR/cors/>`__. If this 88 param ater is not defined, then the ZOO-Kernel won't support CORS.88 parameter is not defined, then the ZOO-Kernel won't support CORS. 89 89 * ``servicePath``: Define a specific location to search for services 90 90 rather than using the ZOO-Kernel directory. If this parameter is 91 91 not defined, then the ZOO-Kernel will search for services using its 92 92 directory. 93 93 * ``libPath``: (Optional) Path to a directory where the ZOO-kernel should search for 94 service providers, e.g., shared libraries with service implementations 95 (the ``serviceProvider`` parameter in the service configuration (.zcfg) file). 96 97 .. warning:: 98 The ``libPath`` parameter is currently only recognized by services implemented 99 in C/C++ or PHP, and may be moved to another section in future versions. 100 94 101 In case you have activated the MapServer support, please refer to 95 102 :ref:`this specific section <kernel-mapserver-main.cfg>`. … … 253 260 to setup the database. 254 261 262 Include section 263 ............................... 264 265 The ``[include]`` section (optional) lists explicitely a set of service configuration files 266 the the ZOO-Kernel should parse, e.g., 267 268 269 .. code-block:: guess 270 :linenos: 271 272 [include] 273 servicename1 = /my/service/repository/service1.zcfg 274 servicename2 = /my/service/repository/service2.zcfg 275 276 The ``[include]`` section may be used to control which services are exposed to particular user groups. 277 While service configuration files (.zcfg) may be located in a common repository or in arbitrary folders, 278 main.cfg files at different URLs may include different subsets of services. 279 280 When the ZOO-Kernel handles a request, it will first check if there is an ``[include]`` 281 section in main.cfg and then search for other .zcfg files in the current working directory (CWD) and 282 subdirectories. If an included service happens to be located in a CWD (sub)directory, 283 it will be published by its name in the ``[include]`` section. For example, the service 284 ``/[CWD]/name/space/myService.zcfg`` 285 would normally be published as name.space.myService, but if it is listed in the ``[include]`` section 286 it will be published simply as myService: 287 288 .. code-block:: guess 289 :linenos: 290 291 [include] 292 myService = /[CWD]/name/space/myService.zcfg 293 294 On the other hand, with 295 296 .. code-block:: guess 297 :linenos: 298 299 [include] 300 myService = /some/other/dir/myService.zcfg 301 302 there would be two distinct services published as myService and name.space.myService, respectively, 303 with two different zcfg files. 304 305 .. note:: 306 As currently implemented, the ZOO-Kernel searches the CWD for the library files of 307 included services if the ``libPath`` parameter is not set. 308 255 309 256 310 .. rubric:: Footnotes -
trunk/zoo-project/zoo-kernel/service_internal_php7.c
r790 r796 139 139 RETURN_NULL(); 140 140 } 141 RETURN_STRING(_ss(value), 1); 141 //RETURN_STRING(_ss(value), 1); 142 RETURN_STRINGL(_ss(value), 1); 142 143 } 143 144
Note: See TracChangeset
for help on using the changeset viewer.