Beispiel #1
0
 /**
  * Resolve an array definition to a value.
  *
  * An array definition can contain simple values or references to other entries.
  *
  * @param ArrayDefinition $definition
  *
  * {@inheritdoc}
  */
 public function resolve(Definition $definition, array $parameters = [])
 {
     $values = $definition->getValues();
     // Resolve nested definitions
     foreach ($values as $key => $value) {
         if ($value instanceof DefinitionHelper) {
             $values[$key] = $this->resolveDefinition($value, $definition, $key);
         }
     }
     return $values;
 }
Beispiel #2
0
 /**
  * Resolve an array definition to a value.
  *
  * An array definition can contain simple values or references to other entries.
  *
  * @param ArrayDefinition $definition
  *
  * {@inheritdoc}
  */
 public function resolve(Definition $definition, array $parameters = [])
 {
     $values = $definition->getValues();
     $values = $this->resolveNestedDefinitions($definition, $values);
     return $values;
 }