public function 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 drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/DefinitionDecorator.php
@api
1 method overrides Definition::setFile()
DefinitionDecorator::setFile 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 493

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

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