@@ 33-51 (lines=19) @@ | ||
30 | * @param Request $request |
|
31 | * @param $params |
|
32 | */ |
|
33 | protected function populateRequest($request, $params) |
|
34 | { |
|
35 | foreach ($params as $param => $value) { |
|
36 | switch ($param) { |
|
37 | case 'module': |
|
38 | $request->setModuleName($value); |
|
39 | break; |
|
40 | case 'controller': |
|
41 | $request->setControllerName($value); |
|
42 | break; |
|
43 | case 'action': |
|
44 | $request->setActionName($value); |
|
45 | break; |
|
46 | default: |
|
47 | $request->attributes->set($param, $value); |
|
48 | break; |
|
49 | } |
|
50 | } |
|
51 | } |
|
52 | } |
|
53 |
@@ 56-74 (lines=19) @@ | ||
53 | * @param Request $request |
|
54 | * @param $params |
|
55 | */ |
|
56 | protected function populateRequest($request, $params) |
|
57 | { |
|
58 | foreach ($params as $param => $value) { |
|
59 | switch ($param) { |
|
60 | case 'module': |
|
61 | $request->setModuleName($value); |
|
62 | break; |
|
63 | case 'controller': |
|
64 | $request->setControllerName($value); |
|
65 | break; |
|
66 | case 'action': |
|
67 | $request->setActionName($value); |
|
68 | break; |
|
69 | default: |
|
70 | $request->attributes->set($param, $value); |
|
71 | break; |
|
72 | } |
|
73 | } |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * @return Router |