Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 9965483

Browse files
andrey1swouterj
andrey1s
authored andcommitted
add return SimpleEnhancer::enhance
1 parent 2b5ba69 commit 9965483

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bundles/routing/dynamic_customize.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ implementations if you have a case not handled by the
3636
{
3737
public function enhance(array $defaults, Request $request)
3838
{
39-
//own logic
39+
// own logic.
40+
41+
// Enhancer MUST return the $defaults but may add or remove values.
42+
return $defaults;
4043
}
4144
}
4245

0 commit comments

Comments
 (0)