]> git.mxchange.org Git - core.git/commitdiff
Added config entry for configuring the IPC socket file name.
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Sep 2015 20:47:20 +0000 (22:47 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Sep 2015 20:47:20 +0000 (22:47 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/config.php
inc/main/classes/listener/socket/class_SocketFileListener.php

index 7d263be3a7e7d61eee7e70e3d4ac544c40aa5f63..2f3b5faaecc7b1273aaa06c212888721a664413a 100644 (file)
@@ -461,5 +461,8 @@ $cfg->setConfigEntry('feature_fuse_class', 'FuseFeature');
 // CFG: TEMP-FILE-PATH
 $cfg->setConfigEntry('temp_file_path', sys_get_temp_dir());
 
+// CFG: IPC-SOCKET-FILE-NAME
+$cfg->setConfigEntry('ipc_socket_file_name', 'php_ipc_socket');
+
 // [EOF]
 ?>
index 35469d8c64d282c4e4475dee78e449ef8f57f50f..63d8d1de0fc661c19c9de604d663dde982605cf9 100644 (file)
@@ -73,7 +73,7 @@ class SocketFileListener extends BaseListener implements Listenable {
                } // END - if
 
                // Create file name
-               $socketFile = self::createTempPathForFile('php_hub_ipc_socket');
+               $socketFile = self::createTempPathForFile($this->getConfigEntry('ipc_socket_file_name'));
 
                // Debug message
                self::createDebugInstance(__CLASS__)->debugOutput('SOCKET-FILE-LISTENER[' . __METHOD__ . ':' . __LINE__ . ']: socketFile=' . $socketFile . ' ...');