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();