Skip to content

Commit

Permalink
🐛 Fix autoloading in bin script
Browse files Browse the repository at this point in the history
  • Loading branch information
DrWh0286 committed Nov 28, 2019
1 parent 1e91006 commit e8d2260
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bin/tscsf
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env php
<?php

if (is_file(__DIR__ . '/../autoload.php')) {
require __DIR__.'/../autoload.php';
} else {
require __DIR__ . '/autoload.php';
if (file_exists(__DIR__ . '/../autoload.php')) {
require_once __DIR__.'/../autoload.php';
} elseif (file_exists(__DIR__ . '/../../../autoload.php')) {
require_once __DIR__ . '/../../../autoload.php';
} elseif (file_exists(__DIR__ . '/../vendor/autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
} elseif(file_exists(__DIR__ . '/autoload.php')) {
require_once __DIR__ . '/autoload.php';
}

use Pluswerk\TypoScriptAutoFixer\Command\FixCommand;
Expand Down

0 comments on commit e8d2260

Please sign in to comment.