You are here

public function PhpDumper::addExpressionLanguageProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Dumper/PhpDumper.php \Symfony\Component\DependencyInjection\Dumper\PhpDumper::addExpressionLanguageProvider()

Parameters

ExpressionFunctionProviderInterface $provider:

Deprecated

since version 2.6.2, to be removed in 3.0. Use \Symfony\Component\DependencyInjection\ContainerBuilder::addExpressionLanguageProvider instead.

File

vendor/symfony/dependency-injection/Dumper/PhpDumper.php, line 1419

Class

PhpDumper
PhpDumper dumps a service container as a PHP class.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

public function addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.6.2 and will be removed in 3.0. Use the Symfony\\Component\\DependencyInjection\\ContainerBuilder::addExpressionLanguageProvider method instead.', E_USER_DEPRECATED);
  $this->expressionLanguageProviders[] = $provider;
}