You are here

public function Definition::setClass 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::setClass()

Sets the service class.

@api

Parameters

string $class The service class:

Return value

Definition The current instance

1 call to Definition::setClass()
DefinitionDecorator::setClass in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/DefinitionDecorator.php
@api
1 method overrides Definition::setClass()
DefinitionDecorator::setClass 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 241

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setClass($class) {
  $this->class = $class;
  return $this;
}