public function Definition::setPublic

Sets the visibility of this service.

@api

Parameters

Boolean $boolean:

Return value

Definition The current instance

1 call to Definition::setPublic()
DefinitionDecorator::setPublic in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/DefinitionDecorator.php
@api
1 method overrides Definition::setPublic()
DefinitionDecorator::setPublic in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/DefinitionDecorator.php
@api

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Definition.php, line 557

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setPublic($boolean) {
  $this->public = (bool) $boolean;
  return $this;
}