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 |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/DeprecateTrait.html