Skip to content

Commit 56ef723

Browse files
authored
Merge pull request #142 from php-api-clients/improve-operation-calling-from-client-into-smaller-files
Improve operation calling from client into smaller files
2 parents 9980fb5 + 36bb7bc commit 56ef723

File tree

6 files changed

+696
-218
lines changed

6 files changed

+696
-218
lines changed

src/Generator.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ public function generate(string $namespace, string $namespaceTest, string $confi
8282
)
8383
)
8484
]),
85+
new Node\Stmt\Use_([
86+
new Node\Stmt\UseUse(
87+
new Node\Name(
88+
ltrim($namespace, '\\') . 'Router',
89+
)
90+
)
91+
]),
92+
new Node\Stmt\Use_([
93+
new Node\Stmt\UseUse(
94+
new Node\Name(
95+
ltrim($namespace, '\\') . 'ChunkSize',
96+
)
97+
)
98+
]),
8599
]);
86100
}
87101
$fileContents = ($file->contents instanceof Node\Stmt\Namespace_ ? $codePrinter->prettyPrintFile([

0 commit comments

Comments
 (0)