Skip to content

Commit

Permalink
load project as well
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Mar 18, 2024
1 parent 6daee49 commit b9b0f60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/rule-doc-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b9b0f60

Please sign in to comment.