W3cubDocs

/Symfony 4.1

DeprecateTrait

trait DeprecateTrait

Methods

$this deprecate(string $template = null)

Whether this definition is deprecated, that means it should not be called anymore.

Details

final $this deprecate(string $template = null)

Whether this definition is deprecated, that means it should not be called anymore.

Parameters

string $template Template message to use if the definition is deprecated

Return Value

$this

Exceptions

InvalidArgumentException when the message template is invalid