From 30ab131f201117ceaea80077b1a1d908a1f61e05 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 19 Jan 2022 18:55:51 +0100 Subject: [PATCH] fix composer autoload in bins --- bin/ext2ref | 2 +- bin/ref2html | 3 ++- bin/ref2stub | 2 +- bin/stub2ref | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/ext2ref b/bin/ext2ref index 978b427..b5013db 100755 --- a/bin/ext2ref +++ b/bin/ext2ref @@ -1,7 +1,7 @@ #!/usr/bin/env php [ ...]\n", $argv[0]); diff --git a/bin/stub2ref b/bin/stub2ref index de1899b..f0d11b1 100755 --- a/bin/stub2ref +++ b/bin/stub2ref @@ -3,7 +3,7 @@ namespace mdref; -require_once __DIR__."/../vendor/autoload.php"; +require_once $_composer_autoload_path ?? __DIR__."/../vendor/autoload.php"; if ($argc < 3) { fprintf(STDERR, "Usage: cd ref- && %s \n", $argv[0]); -- 2.30.2