From b9b0f607201826c181c8315feca07100c2c8a15c Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 18 Mar 2024 22:14:31 +0100 Subject: [PATCH] load project as well --- bin/rule-doc-generator.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/rule-doc-generator.php b/bin/rule-doc-generator.php index 619bc30..48f568d 100755 --- a/bin/rule-doc-generator.php +++ b/bin/rule-doc-generator.php @@ -23,8 +23,13 @@ // load scoped classes $scoperAutoloadFilepath = __DIR__ . '/../vendor/scoper-autoload.php'; -if (file_exists($scoperAutoloadFilepath)) { +if (\file_exists($scoperAutoloadFilepath)) { require_once $scoperAutoloadFilepath; + + // tap into project autoload + if (file_exists(__DIR__ . '/../../../autoload.php')) { + require_once __DIR__ . '/../../../autoload.php'; + } } $containerFactory = new ContainerFactory();