Bind keyword to bind specific arguments by name or type:
or in pure js or typescript
const compiler = new ContainerBuilder(false, '../path/to/src')
compiler.addBind('adminEmail', 'manager@example.com')
compiler.addBind('someParameter', process.env.SOME_PARAMETER)
const autowire = new Autowire(compiler)
or in yaml
services:
_defaults:
bind:
# pass this value to any adminEmail argument for any service
# that's defined in this file (including controller arguments)
adminEmail: 'manager@example.com'
# also if is coming from environment variables
someParameter: '%env(SOME_PARAMETER)%'
Bind keyword to bind specific arguments by name or type:
or in pure js or typescript
or in yaml
Then you can use it it that way