php-sdk
when done add php to core/schema/sdk.go:L93Installation
dagger install github.com/TomChv/dagger/sdk/php@578d751df6cdca09b2c7961c2e69e8b23b9e91c7
Entrypoint
Return Type
PhpSdk !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
sdkSourceDir | Directory | - | Directory with the PHP SDK source code. |
Example
func (m *myModule) example() *PhpSdk {
return dag.
PhpSdk()
}
Types
PhpSdk 🔗
sourceDir() 🔗
Return Type
Directory !
Example
func (m *myModule) example() *Directory {
return dag.
PhpSdk().
SourceDir()
}
requiredPaths() 🔗
Return Type
[String ! ] !
Example
func (m *myModule) example(ctx context.Context) []string {
return dag.
PhpSdk().
RequiredPaths(ctx)
}
container() 🔗
Return Type
Container !
Example
func (m *myModule) example() *Container {
return dag.
PhpSdk().
Container()
}
codegen() 🔗
Return Type
GeneratedCode !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | String ! | - | No description provided |
Example
func (m *myModule) example(modSource *ModuleSource, introspectionJson string) *GeneratedCode {
return dag.
PhpSdk().
Codegen(modSource, introspectionJson)
}
codegenBase() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | String ! | - | No description provided |
Example
func (m *myModule) example(modSource *ModuleSource, introspectionJson string) *Container {
return dag.
PhpSdk().
CodegenBase(modSource, introspectionJson)
}
moduleRuntime() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | String ! | - | No description provided |
Example
func (m *myModule) example(modSource *ModuleSource, introspectionJson string) *Container {
return dag.
PhpSdk().
ModuleRuntime(modSource, introspectionJson)
}