Skip to content

Commit fd99102

Browse files
committed
Fix autoloading path in console application
Without it the console application has autoloading issues when used as dependency, like in the crowdin bridge.
1 parent be252ff commit fd99102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/crowdinSetup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use FriendsOfTYPO3\CrowdinBase\Command\SetupCommand;
77
use DI\ContainerBuilder;
88
use Symfony\Component\Console\Application;
99

10-
require __DIR__ . '/../vendor/autoload.php';
10+
require $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php';
1111

1212
$containerBuilder = new ContainerBuilder();
1313
$containerBuilder->addDefinitions(dirname(__DIR__) . '/config/container.php');

0 commit comments

Comments
 (0)