| @@ 120-126 (lines=7) @@ | ||
| 117 | * @param string $defaultClass the class to use if none is set in config. |
|
| 118 | * @return object the router instance |
|
| 119 | */ |
|
| 120 | public function createRouter($config, $defaultClass = false){
|
|
| 121 | $resolver = $config['channel_resolver'] ? (string)$config['channel_resolver'] : $this->channelRegistry; |
|
| 122 | return $this->buildAndModify($config, array( |
|
| 123 | $resolver, |
|
| 124 | $this->doGetChannel('input', $config)
|
|
| 125 | ), $defaultClass); |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * Creates and registers splitter from a configuration object. |
|
| @@ 462-468 (lines=7) @@ | ||
| 459 | * @param string $defaultClass the class to use if none is set in config. |
|
| 460 | * @return object the router instance |
|
| 461 | */ |
|
| 462 | public function createRouter($config, $defaultClass = false){
|
|
| 463 | $resolver = $config['channel_resolver'] ? (string)$config['channel_resolver'] : $this->channelRegistry; |
|
| 464 | return ServiceFactory::buildAndModify($config, array( |
|
| 465 | $resolver, |
|
| 466 | $this->doGetChannel('input', $config)
|
|
| 467 | ), $defaultClass); |
|
| 468 | } |
|
| 469 | ||
| 470 | /** |
|
| 471 | * Creates and registers splitter from a configuration object. |
|