|
@@ 116-122 (lines=7) @@
|
| 113 |
|
if ($this->supportEmptySegmentForDimensions) { |
| 114 |
|
foreach ($firstUriPartExploded as $uriSegment) { |
| 115 |
|
$uriSegmentIsValid = false; |
| 116 |
|
foreach ($dimensionPresets as $dimensionName => $dimensionPreset) { |
| 117 |
|
$preset = $this->contentDimensionPresetSource->findPresetByUriSegment($dimensionName, $uriSegment); |
| 118 |
|
if ($preset !== null) { |
| 119 |
|
$uriSegmentIsValid = true; |
| 120 |
|
break; |
| 121 |
|
} |
| 122 |
|
} |
| 123 |
|
if (!$uriSegmentIsValid) { |
| 124 |
|
return; |
| 125 |
|
} |
|
@@ 131-137 (lines=7) @@
|
| 128 |
|
if (count($firstUriPartExploded) === count($dimensionPresets)) { |
| 129 |
|
return; |
| 130 |
|
} |
| 131 |
|
foreach ($dimensionPresets as $dimensionName => $dimensionPreset) { |
| 132 |
|
$uriSegment = array_shift($firstUriPartExploded); |
| 133 |
|
$preset = $this->contentDimensionPresetSource->findPresetByUriSegment($dimensionName, $uriSegment); |
| 134 |
|
if ($preset === null) { |
| 135 |
|
return; |
| 136 |
|
} |
| 137 |
|
} |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
$path = $matches['firstUriPart'] . '/' . $path; |