@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\FixturesBundle\Suite; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | 15 | use Sylius\Bundle\FixturesBundle\Fixture\FixtureInterface; |
17 | 16 | use Sylius\Bundle\FixturesBundle\Suite\Suite; |
18 | 17 | use Sylius\Bundle\FixturesBundle\Suite\SuiteInterface; |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\FlowBundle\DependencyInjection; |
13 | 13 | |
14 | -use Symfony\Component\Config\Definition\Processor; |
|
15 | 14 | use Symfony\Component\Config\FileLocator; |
16 | 15 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
17 | 16 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function load(array $config, ContainerBuilder $container) |
31 | 31 | { |
32 | 32 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
33 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/container')); |
|
33 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/container')); |
|
34 | 34 | |
35 | 35 | $container->setAlias('sylius.process_storage', $config['storage']); |
36 | 36 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * Add a step with given name. |
37 | 37 | * |
38 | 38 | * @param string $name |
39 | - * @param string|StepInterface $step Step alias or instance |
|
39 | + * @param string $step Step alias or instance |
|
40 | 40 | * |
41 | 41 | * @return ProcessBuilderInterface |
42 | 42 | */ |
@@ -46,6 +46,7 @@ discard block |
||
46 | 46 | * Remove step with given name. |
47 | 47 | * |
48 | 48 | * @param string $name |
49 | + * @return void |
|
49 | 50 | */ |
50 | 51 | public function remove($name); |
51 | 52 | |
@@ -62,6 +63,7 @@ discard block |
||
62 | 63 | * Set display route. |
63 | 64 | * |
64 | 65 | * @param string $route |
66 | + * @return ProcessBuilder |
|
65 | 67 | */ |
66 | 68 | public function setDisplayRoute($route); |
67 | 69 | |
@@ -69,6 +71,7 @@ discard block |
||
69 | 71 | * Set additional forward route params. |
70 | 72 | * |
71 | 73 | * @param array $params |
74 | + * @return ProcessBuilder |
|
72 | 75 | */ |
73 | 76 | public function setDisplayRouteParams(array $params); |
74 | 77 | |
@@ -76,6 +79,7 @@ discard block |
||
76 | 79 | * Set forward route. |
77 | 80 | * |
78 | 81 | * @param string $route |
82 | + * @return ProcessBuilder |
|
79 | 83 | */ |
80 | 84 | public function setForwardRoute($route); |
81 | 85 | |
@@ -83,6 +87,7 @@ discard block |
||
83 | 87 | * Set additional forward route params. |
84 | 88 | * |
85 | 89 | * @param array $params |
90 | + * @return ProcessBuilder |
|
86 | 91 | */ |
87 | 92 | public function setForwardRouteParams(array $params); |
88 | 93 | |
@@ -90,6 +95,7 @@ discard block |
||
90 | 95 | * Set redirection route after completion. |
91 | 96 | * |
92 | 97 | * @param string $redirect |
98 | + * @return ProcessBuilder |
|
93 | 99 | */ |
94 | 100 | public function setRedirect($redirect); |
95 | 101 | |
@@ -97,13 +103,15 @@ discard block |
||
97 | 103 | * Set redirection route params. |
98 | 104 | * |
99 | 105 | * @param array $params |
106 | + * @return ProcessBuilder |
|
100 | 107 | */ |
101 | 108 | public function setRedirectParams(array $params); |
102 | 109 | |
103 | 110 | /** |
104 | 111 | * Validation of process, if returns false, process is suspended. |
105 | 112 | * |
106 | - * @param \Closure|ProcessValidatorInterface $validator |
|
113 | + * @param \Prophecy\Argument\Token\AnyValueToken $validator |
|
114 | + * @return ProcessBuilder |
|
107 | 115 | */ |
108 | 116 | public function validate($validator); |
109 | 117 | |
@@ -112,6 +120,7 @@ discard block |
||
112 | 120 | * |
113 | 121 | * @param string $alias |
114 | 122 | * @param StepInterface $step |
123 | + * @return void |
|
115 | 124 | */ |
116 | 125 | public function registerStep($alias, StepInterface $step); |
117 | 126 |
@@ -29,6 +29,7 @@ discard block |
||
29 | 29 | * |
30 | 30 | * @param ProcessInterface $process |
31 | 31 | * @param StepInterface $currentStep |
32 | + * @return ProcessContext |
|
32 | 33 | */ |
33 | 34 | public function initialize(ProcessInterface $process, StepInterface $currentStep); |
34 | 35 | |
@@ -78,11 +79,13 @@ discard block |
||
78 | 79 | * Override the default next step. |
79 | 80 | * |
80 | 81 | * @param string $stepAlias |
82 | + * @return void |
|
81 | 83 | */ |
82 | 84 | public function setNextStepByName($stepAlias); |
83 | 85 | |
84 | 86 | /** |
85 | 87 | * Close context and clear all the data. |
88 | + * @return void |
|
86 | 89 | */ |
87 | 90 | public function close(); |
88 | 91 | |
@@ -104,6 +107,7 @@ discard block |
||
104 | 107 | * Set storage. |
105 | 108 | * |
106 | 109 | * @param StorageInterface $storage |
110 | + * @return void |
|
107 | 111 | */ |
108 | 112 | public function setStorage(StorageInterface $storage); |
109 | 113 | |
@@ -118,6 +122,7 @@ discard block |
||
118 | 122 | * Set current request. |
119 | 123 | * |
120 | 124 | * @param Request $request |
125 | + * @return void |
|
121 | 126 | */ |
122 | 127 | public function setRequest(Request $request); |
123 | 128 | |
@@ -139,6 +144,7 @@ discard block |
||
139 | 144 | * Set a new history of step names. |
140 | 145 | * |
141 | 146 | * @param array $history |
147 | + * @return void |
|
142 | 148 | */ |
143 | 149 | public function setStepHistory(array $history); |
144 | 150 | |
@@ -146,6 +152,7 @@ discard block |
||
146 | 152 | * Add the given name to the history of step names. |
147 | 153 | * |
148 | 154 | * @param string $stepName |
155 | + * @return void |
|
149 | 156 | */ |
150 | 157 | public function addStepToHistory($stepName); |
151 | 158 | |
@@ -153,6 +160,7 @@ discard block |
||
153 | 160 | * Goes back from the end fo the history and deletes all step names until the current one is found. |
154 | 161 | * |
155 | 162 | * @throws NotFoundHttpException If the step name is not found in the history. |
163 | + * @return void |
|
156 | 164 | */ |
157 | 165 | public function rewindHistory(); |
158 | 166 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param string $stepName |
43 | 43 | * @param ParameterBag $queryParameters |
44 | 44 | * |
45 | - * @return Response|View |
|
45 | + * @return RedirectResponse |
|
46 | 46 | */ |
47 | 47 | public function display($scenarioAlias, $stepName, ParameterBag $queryParameters = null); |
48 | 48 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @param string $scenarioAlias |
54 | 54 | * @param string $stepName |
55 | 55 | * |
56 | - * @return Response|View |
|
56 | + * @return RedirectResponse |
|
57 | 57 | */ |
58 | 58 | public function forward($scenarioAlias, $stepName); |
59 | 59 | |
@@ -62,6 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @param string $alias |
64 | 64 | * @param ProcessScenarioInterface $scenario |
65 | + * @return void |
|
65 | 66 | */ |
66 | 67 | public function registerScenario($alias, ProcessScenarioInterface $scenario); |
67 | 68 |
@@ -32,6 +32,7 @@ discard block |
||
32 | 32 | * Set scenario alias. |
33 | 33 | * |
34 | 34 | * @param string $scenarioAlias |
35 | + * @return void |
|
35 | 36 | */ |
36 | 37 | public function setScenarioAlias($scenarioAlias); |
37 | 38 | |
@@ -47,6 +48,7 @@ discard block |
||
47 | 48 | * Set steps. |
48 | 49 | * |
49 | 50 | * @param StepInterface[] $steps |
51 | + * @return void |
|
50 | 52 | */ |
51 | 53 | public function setSteps(array $steps); |
52 | 54 | |
@@ -76,6 +78,7 @@ discard block |
||
76 | 78 | * |
77 | 79 | * @param string $name |
78 | 80 | * @param StepInterface $step |
81 | + * @return void |
|
79 | 82 | */ |
80 | 83 | public function addStep($name, StepInterface $step); |
81 | 84 | |
@@ -83,6 +86,7 @@ discard block |
||
83 | 86 | * Remove step. |
84 | 87 | * |
85 | 88 | * @param string $name |
89 | + * @return void |
|
86 | 90 | */ |
87 | 91 | public function removeStep($name); |
88 | 92 | |
@@ -129,6 +133,7 @@ discard block |
||
129 | 133 | * Set redirection after complete. |
130 | 134 | * |
131 | 135 | * @param string $redirect |
136 | + * @return void |
|
132 | 137 | */ |
133 | 138 | public function setRedirect($redirect); |
134 | 139 | |
@@ -143,6 +148,7 @@ discard block |
||
143 | 148 | * Set redirection route params after complete. |
144 | 149 | * |
145 | 150 | * @param array $params |
151 | + * @return void |
|
146 | 152 | */ |
147 | 153 | public function setRedirectParams(array $params); |
148 | 154 | |
@@ -157,6 +163,7 @@ discard block |
||
157 | 163 | * Set display route. |
158 | 164 | * |
159 | 165 | * @param string $route |
166 | + * @return void |
|
160 | 167 | */ |
161 | 168 | public function setDisplayRoute($route); |
162 | 169 | |
@@ -171,6 +178,7 @@ discard block |
||
171 | 178 | * Set additional display route params. |
172 | 179 | * |
173 | 180 | * @param array $params |
181 | + * @return void |
|
174 | 182 | */ |
175 | 183 | public function setDisplayRouteParams(array $params); |
176 | 184 | |
@@ -185,6 +193,7 @@ discard block |
||
185 | 193 | * Set forward route. |
186 | 194 | * |
187 | 195 | * @param string $route |
196 | + * @return void |
|
188 | 197 | */ |
189 | 198 | public function setForwardRoute($route); |
190 | 199 | |
@@ -199,6 +208,7 @@ discard block |
||
199 | 208 | * Set additional forward route params. |
200 | 209 | * |
201 | 210 | * @param array $params |
211 | + * @return void |
|
202 | 212 | */ |
203 | 213 | public function setForwardRouteParams(array $params); |
204 | 214 |
@@ -27,6 +27,7 @@ |
||
27 | 27 | * Builds the whole process. |
28 | 28 | * |
29 | 29 | * @param ProcessBuilderInterface $builder |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function build(ProcessBuilderInterface $builder); |
32 | 33 | } |
@@ -28,6 +28,7 @@ |
||
28 | 28 | * Set step name. |
29 | 29 | * |
30 | 30 | * @param string $name |
31 | + * @return void |
|
31 | 32 | */ |
32 | 33 | public function setName($name); |
33 | 34 |
@@ -83,7 +83,7 @@ |
||
83 | 83 | /** |
84 | 84 | * Set validation. |
85 | 85 | * |
86 | - * @param callable $validation |
|
86 | + * @param \Closure $validation |
|
87 | 87 | * |
88 | 88 | * @return $this |
89 | 89 | */ |