This adds a variety of new AST nodes and sets up file generation (w/ imports) so that we can start generating the root client. A few things to note:
The Argument node was brought into generator-commons since it doesn't depend on any IR types.
The external/GuzzleClient and core/RawClient types are added to make it easier to interact with these types.
Additional external/core dependencies can be placed in the external and core directories, respectively.
The PHP namespace must be generated before imports, so all namespace writing is handled in the Writer.
For now, we just instantiate the $defaultHeader, and construct the RawClient from client options and/or the default Guzzle client. Note that all seed tests currently fail due to phpstan complaining about unused parameters (which will be resolved).
This adds a variety of new AST nodes and sets up file generation (w/ imports) so that we can start generating the root client. A few things to note:
Argument
node was brought intogenerator-commons
since it doesn't depend on any IR types.external/GuzzleClient
andcore/RawClient
types are added to make it easier to interact with these types.external
andcore
directories, respectively.namespace
writing is handled in theWriter
.For now, we just instantiate the
$defaultHeader
, and construct theRawClient
from client options and/or the default Guzzle client. Note that all seed tests currently fail due tophpstan
complaining about unused parameters (which will be resolved).