@@ -80,7 +80,7 @@ public static function generate(Configuration $configuration, string $pathPrefix
8080 }
8181
8282 $ class ->addStmt (
83- $ factory ->property ('routers ' )->setType ('Routers ' )->makeReadonly ()->makePrivate (),
83+ $ factory ->property ('routers ' )->setType ('Internal \\ Routers ' )->makeReadonly ()->makePrivate (),
8484 )->addStmt (
8585 $ factory ->method ('__construct ' )->makePublic ()->addParam (
8686 (new Param ('authentication ' ))->setType ('\\' . AuthenticationInterface::class),
@@ -143,7 +143,7 @@ public static function generate(Configuration $configuration, string $pathPrefix
143143 new Node \Expr \Assign (
144144 new Node \Expr \Variable ('hydrators ' ),
145145 new Node \Expr \New_ (
146- new Node \Name ('Hydrators ' ),
146+ new Node \Name ('Internal \\ Hydrators ' ),
147147 [],
148148 ),
149149 ),
@@ -159,7 +159,7 @@ public static function generate(Configuration $configuration, string $pathPrefix
159159 [
160160 new Arg (
161161 new Node \Expr \New_ (
162- new Node \Name ('Operators ' ),
162+ new Node \Name ('Internal \\ Operators ' ),
163163 [
164164 new Arg (
165165 new Node \Expr \Variable ('browser ' ),
@@ -239,7 +239,7 @@ public static function generate(Configuration $configuration, string $pathPrefix
239239 'routers ' ,
240240 ),
241241 new Node \Expr \New_ (
242- new Node \Name ('Routers ' ),
242+ new Node \Name ('Internal \\ Routers ' ),
243243 [
244244 new Arg (
245245 new Node \Expr \Variable ('browser ' ),
@@ -374,7 +374,7 @@ public static function generate(Configuration $configuration, string $pathPrefix
374374 ),
375375 );
376376 $ chunkCountClasses [] = $ cc = new ChunkCount (
377- 'Router \\' . (new Convert ($ method ))->toPascal () . '\\' . (new Convert (NumberToWords::transformNumber ('en ' , $ chunkCount )))->toPascal (),
377+ 'Internal \\ Router \\' . (new Convert ($ method ))->toPascal () . '\\' . (new Convert (NumberToWords::transformNumber ('en ' , $ chunkCount )))->toPascal (),
378378 $ returnTypes ,
379379 $ docBlockReturnTypes ,
380380 self ::traverseOperations (
@@ -1029,7 +1029,7 @@ private static function createRouter(string $pathPrefix, string $namespace, Rout
10291029 )->addParam (
10301030 (new PrivatePromotedPropertyAsParam ('responseSchemaValidator ' ))->setType ('\League\OpenAPIValidation\Schema\SchemaValidator ' ),
10311031 )->addParam (
1032- (new PrivatePromotedPropertyAsParam ('hydrators ' ))->setType ('\\' . $ namespace . ' Hydrators ' ),
1032+ (new PrivatePromotedPropertyAsParam ('hydrators ' ))->setType ('Internal \\ Hydrators ' ),
10331033 )->addParam (
10341034 (new PrivatePromotedPropertyAsParam ('browser ' ))->setType ('\\' . Browser::class),
10351035 )->addParam (
@@ -1071,7 +1071,7 @@ private static function createRouterChunkSize(string $pathPrefix, string $namesp
10711071
10721072 $ class = $ factory ->class (Utils::basename ($ namespace . $ chunkCount ->className ))->makeFinal ()->addStmt (
10731073 $ factory ->method ('__construct ' )->makePublic ()->addParam (
1074- (new PrivatePromotedPropertyAsParam ('routers ' ))->setType ('\\' . $ namespace . 'Routers ' ),
1074+ (new PrivatePromotedPropertyAsParam ('routers ' ))->setType ('\\' . $ namespace . 'Internal \\ Routers ' ),
10751075 ),
10761076 );
10771077
0 commit comments