You are here

public function Definition::setFile in Service Container 7.2

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

Sets a file to require before creating the service.

@api

Parameters

string $file A full pathname to include:

Return value

Definition The current instance

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

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setFile($file) {
  $this->file = $file;
  return $this;
}