W3cubDocs

/Symfony 4.1

AutowireTrait

trait AutowireTrait

Methods

$this autowire(bool $autowired = true)

Enables/disables autowiring.

Details

final $this autowire(bool $autowired = true)

Enables/disables autowiring.

Parameters

bool $autowired

Return Value

$this