Skip to content

Commit 5c90e4d

Browse files
Merge pull request #47 from rasmuscnielsen/rasmuscnielsen-patch-1
Use service container to resolve TypescriptTransformer
2 parents 3a79c0c + 2187023 commit 5c90e4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/Commands/TypeScriptTransformCommand.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public function handle(
3939
$config->formatter(PrettierFormatter::class);
4040
}
4141

42-
$transformer = new TypeScriptTransformer($config);
42+
$transformer = app()->make(TypeScriptTransformer::class, [
43+
'config' => $config,
44+
]);
4345

4446
try {
4547
$this->ensureConfiguredCorrectly();

0 commit comments

Comments
 (0)