|
@@ -47,7 +47,7 @@ discard block |
|
|
block discarded – undo |
|
47
|
47
|
|
|
48
|
48
|
// It's nicer for our JavaScript to be handed the Wander URI on a plate, so we add it |
|
49
|
49
|
// to the returned JSON. |
|
50
|
|
- $contentUrlCallback = function ($innerObject, $outerObject, string $attributeName, string $format = null, array $context = []) use ($router) { |
|
|
50
|
+ $contentUrlCallback = function($innerObject, $outerObject, string $attributeName, string $format = null, array $context = []) use ($router) { |
|
51
|
51
|
return $router->generate( |
|
52
|
52
|
'wanders_show', |
|
53
|
53
|
['id' => $outerObject->getId()] |
|
@@ -90,7 +90,7 @@ discard block |
|
|
block discarded – undo |
|
90
|
90
|
): Response { |
|
91
|
91
|
// It's nicer for our JavaScript to be handed the Wander URI on a plate, so we add it |
|
92
|
92
|
// to the returned JSON. |
|
93
|
|
- $contentUrlCallback = function ($innerObject, $outerObject, string $attributeName, string $format = null, array $context = []) use ($router) { |
|
|
93
|
+ $contentUrlCallback = function($innerObject, $outerObject, string $attributeName, string $format = null, array $context = []) use ($router) { |
|
94
|
94
|
return $router->generate( |
|
95
|
95
|
'wanders_show', |
|
96
|
96
|
['id' => $outerObject->getId()] |
Please login to merge, or discard this patch.