You are here

public function FieldByClassEnhancer::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/Enhancer/FieldByClassEnhancer.php \Symfony\Cmf\Component\Routing\Enhancer\FieldByClassEnhancer::__construct()

Parameters

string $source the field name of the class:

string $target the field name to set from the map:

array $map the map of class names to field values:

File

vendor/symfony-cmf/routing/Enhancer/FieldByClassEnhancer.php, line 47

Class

FieldByClassEnhancer
This enhancer sets a field if not yet existing from the class of an object in another field.

Namespace

Symfony\Cmf\Component\Routing\Enhancer

Code

public function __construct($source, $target, $map) {
  $this->source = $source;
  $this->target = $target;
  $this->map = $map;
}