File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -14,25 +14,21 @@ class DelegateProcessor implements Processor
14
14
*/
15
15
private $ registry ;
16
16
17
- /**
18
- * @param ProcessorRegistryInterface $registry
19
- */
20
17
public function __construct (ProcessorRegistryInterface $ registry )
21
18
{
22
19
$ this ->registry = $ registry ;
23
20
}
24
21
25
22
/**
26
23
* {@inheritdoc}
24
+ *
25
+ * @return string|object
27
26
*/
28
27
public function process (InteropMessage $ message , Context $ context )
29
28
{
30
29
$ processorName = $ message ->getProperty (Config::PROCESSOR );
31
30
if (false == $ processorName ) {
32
- throw new \LogicException (sprintf (
33
- 'Got message without required parameter: "%s" ' ,
34
- Config::PROCESSOR
35
- ));
31
+ throw new \LogicException (sprintf ('Got message without required parameter: "%s" ' , Config::PROCESSOR ));
36
32
}
37
33
38
34
return $ this ->registry ->get ($ processorName )->process ($ message , $ context );
You can’t perform that action at this time.
0 commit comments