You are here

public function DefinitionDecorator::setClass in Zircon Profile 8

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

Sets the service class.

Parameters

string $class The service class:

Return value

Definition The current instance

Overrides Definition::setClass

File

vendor/symfony/dependency-injection/DefinitionDecorator.php, line 62

Class

DefinitionDecorator
This definition decorates another definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setClass($class) {
  $this->changes['class'] = true;
  return parent::setClass($class);
}