From 33cabafa4a2828d4f7f637eb760f6e84efe7adba Mon Sep 17 00:00:00 2001 From: Clark Everetts Date: Fri, 7 Mar 2025 10:23:02 -0600 Subject: [PATCH] fixes #104: use zs-client's autoloader and vendor dependencies --- bin/zs-client.php | 4 ++-- composer.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/zs-client.php b/bin/zs-client.php index 2be5964..90cbafa 100755 --- a/bin/zs-client.php +++ b/bin/zs-client.php @@ -16,7 +16,7 @@ ini_set('date.timezone', 'UTC'); } -set_include_path(get_include_path(). PATH_SEPARATOR . getcwd()); +set_include_path(getcwd() . PATH_SEPARATOR . get_include_path()); $basePath = dirname(__DIR__); if (!defined('PHAR')) { @@ -24,7 +24,7 @@ chdir($basePath); } -require_once "vendor/autoload.php"; +require_once __DIR__ . '/vendor/autoload.php'; if (file_exists("config/application.config.php")) { $appConfig = require "config/application.config.php"; diff --git a/composer.json b/composer.json index 4446d43..31e22cc 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name" : "zenddevops/client", - "version" : "1.2.4", + "version" : "1.2.5", "description" : "ZF2 CLI tool to access Zend Server Web API", "type" : "project", "authors" : [{