Skip to content

Commit

Permalink
Merge pull request #47 from rasmuscnielsen/rasmuscnielsen-patch-1
Browse files Browse the repository at this point in the history
Use service container to resolve TypescriptTransformer
  • Loading branch information
rubenvanassche authored Oct 4, 2024
2 parents 3a79c0c + 2187023 commit 5c90e4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Commands/TypeScriptTransformCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public function handle(
$config->formatter(PrettierFormatter::class);
}

$transformer = new TypeScriptTransformer($config);
$transformer = app()->make(TypeScriptTransformer::class, [
'config' => $config,
]);

try {
$this->ensureConfiguredCorrectly();
Expand Down

0 comments on commit 5c90e4d

Please sign in to comment.