diff --git a/VimExceptionHandler.php b/VimExceptionHandler.php index f46ef26..2dc03b4 100644 --- a/VimExceptionHandler.php +++ b/VimExceptionHandler.php @@ -22,6 +22,12 @@ class VimExceptionHandler ); private $level; + private $vimServerName; + + public function __construct($vimServerName = 'dev') + { + $this->vimServerName = $vimServerName; + } static public function register($level = null) { @@ -70,7 +76,7 @@ class VimExceptionHandler } file_put_contents('/tmp/stack.php', $stack); - $cmd = sprintf('vim --servername %s --remote-send ":call PhpStackTrace()"', 'florian'); + $cmd = sprintf('vim --servername %s --remote-send ":call PhpStackTrace()"', $this->vimServerName); shell_exec($cmd); } }