Skip to content

Commit 36bb7bc

Browse files
committed
Improve operation calling from client into smaller files
This will make the Client class easier to load and be analyzed by tools and IDE's without freaking out over it's file size
1 parent 9980fb5 commit 36bb7bc

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)