Skip to content

Commit 5d6f821

Browse files
authored
zs-client's autoloader and vendor dependencies can inadvertently be hidden from use by the tool (#105)
1 parent cba4c28 commit 5d6f821

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/zs-client.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
ini_set('date.timezone', 'UTC');
1717
}
1818

19-
set_include_path(get_include_path(). PATH_SEPARATOR . getcwd());
19+
set_include_path(getcwd() . PATH_SEPARATOR . get_include_path());
2020

2121
$basePath = dirname(__DIR__);
2222
if (!defined('PHAR')) {
2323
define('CWD', getcwd());
2424
chdir($basePath);
2525
}
2626

27-
require_once "vendor/autoload.php";
27+
require_once __DIR__ . '/vendor/autoload.php';
2828

2929
if (file_exists("config/application.config.php")) {
3030
$appConfig = require "config/application.config.php";

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "zenddevops/client",
3-
"version" : "1.2.4",
3+
"version" : "1.2.5",
44
"description" : "ZF2 CLI tool to access Zend Server Web API",
55
"type" : "project",
66
"authors" : [{

0 commit comments

Comments
 (0)