From 428399115dbf9128c1c66c69ba40d12cd3340b83 Mon Sep 17 00:00:00 2001 From: Cyrille Giquello Date: Fri, 17 May 2024 10:17:30 +0200 Subject: [PATCH] oauth console in bin #20 --- bin/osm-oauth-console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osm-oauth-console.php b/bin/osm-oauth-console.php index 9ed35da..50c02bf 100755 --- a/bin/osm-oauth-console.php +++ b/bin/osm-oauth-console.php @@ -7,7 +7,7 @@ */ error_reporting(-1); -require_once(__DIR__ . '/../vendor/autoload.php'); +require_once( $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php' ); use Cyrille37\OSM\Yapafo\OSM_Api; use JBelien\OAuth2\Client\Provider\OpenStreetMap as OAuth2OsmProvider;