function Definition::setPublic
Sets the visibility of this service.
Return value
$this
1 call to Definition::setPublic()
- Definition::setSynthetic in vendor/
symfony/ dependency-injection/ Definition.php - Sets whether this definition is synthetic, that is not constructed by the container, but dynamically injected.
File
-
vendor/
symfony/ dependency-injection/ Definition.php, line 539
Class
- Definition
- Definition represents a service definition.
Namespace
Symfony\Component\DependencyInjectionCode
public function setPublic(bool $boolean) : static {
$this->changes['public'] = true;
$this->public = $boolean;
return $this;
}