Skip to content
Prev Previous commit
Next Next commit
EQPS-477: SVC Enhancements (#26)
* EQPS-477: Dynamically set the correct path for autoload.php based on the location of the ‘vendor’ folder * EQPS-477: Make zend-stdlib a required dependency
  • Loading branch information
roribio authored Feb 27, 2020
commit 0133113139f218ae8df1b6c9bed9775459593bdd
7 changes: 6 additions & 1 deletion bin/svc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* See COPYING.txt for license details.
*/

require __DIR__ . '/../vendor/autoload.php';
foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
if (file_exists($file)) {
require $file;
break;
}
}

use Symfony\Component\Console\Application;
use Magento\SemanticVersionChecker\Console\Command\CompareSourceCommand;
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"bin": ["bin/svc"],
"require": {
"php": "~7.1.3||~7.2.0||~7.3.0",
"tomzx/php-semver-checker": "^0.13.0",
"symfony/console": "~4.4.0",
"phpstan/phpdoc-parser": "^0.3.5",
"wikimedia/less.php": "~1.8.0"
"symfony/console": "~4.4.0",
"tomzx/php-semver-checker": "^0.13.0",
"wikimedia/less.php": "~1.8.0",
"zendframework/zend-stdlib": "^3.2.1"
},
"require-dev": {
"phpunit/phpunit": "^6.5.0",
"zendframework/zend-stdlib": "^3.2.1",
"squizlabs/php_codesniffer": "^3.5"
},
"autoload": {
Expand Down
Loading