You are here

public function Definition::setConfigurator in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php \Symfony\Component\DependencyInjection\Definition::setConfigurator()

Sets a configurator to call after the service is fully initialized.

@api

Parameters

callable $callable A PHP callable:

Return value

Definition The current instance

1 call to Definition::setConfigurator()
DefinitionDecorator::setConfigurator in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/DefinitionDecorator.php
@api
1 method overrides Definition::setConfigurator()
DefinitionDecorator::setConfigurator in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/DefinitionDecorator.php
@api

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php, line 789

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setConfigurator($callable) {
  $this->configurator = $callable;
  return $this;
}