| @@ -10,8 +10,10 @@ | ||
| 10 | 10 | /** @var array */ |
| 11 | 11 | protected $definition; |
| 12 | 12 | /** @var ShapeMap */ |
| 13 | 13 | protected $shapeMap; |
| 14 | + /** @var array */ | |
| 15 | + protected $contextParam; | |
| 14 | 16 | /** |
| 15 | 17 | * @param array $definition Service description |
| 16 | 18 | * @param ShapeMap $shapeMap Shapemap used for creating shapes |
| 17 | 19 | */ |
| @@ -18,8 +20,11 @@ | ||
| 18 | 20 | public function __construct(array $definition, ShapeMap $shapeMap) |
| 19 | 21 | { |
| 20 | 22 | $this->definition = $definition; |
| 21 | 23 | $this->shapeMap = $shapeMap; |
| 24 | + if (isset($definition['contextParam'])) { | |
| 25 | + $this->contextParam = $definition['contextParam']; | |
| 26 | + } | |
| 22 | 27 | } |
| 23 | 28 | public function toArray() |
| 24 | 29 | { |
| 25 | 30 | return $this->definition; |