@@ -47,6 +47,9 @@ |
||
| 47 | 47 | return new DedicatedFactory(array($class, '__construct'), $parameters); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string[] $callable |
|
| 52 | + */ |
|
| 50 | 53 | public static function getfromCallable($callable, array $parameters = array()){
|
| 51 | 54 | return new DedicatedFactory($callable, $parameters); |
| 52 | 55 | } |
@@ -112,6 +112,9 @@ |
||
| 112 | 112 | ); |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param string $key |
|
| 117 | + */ |
|
| 115 | 118 | public function provideService($key){
|
| 116 | 119 | $this->doFireEvent(self::EVENT_BEFORE_PROVIDE_SERVICE, array( |
| 117 | 120 | self::HEADER_KEY=>$key) |
@@ -65,7 +65,6 @@ |
||
| 65 | 65 | * Disconnects all listeners. |
| 66 | 66 | * |
| 67 | 67 | * @access public |
| 68 | - * @param Callable|PEIP\INF\Handler\Handler $listener |
|
| 69 | 68 | * @return void |
| 70 | 69 | */ |
| 71 | 70 | public function disconnectAll(){ |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | * |
| 214 | 214 | * @access protected |
| 215 | 215 | * @param object $config configuration object to create arguments from. |
| 216 | - * @return mixed build arguments |
|
| 216 | + * @return \PEIP\INF\Channel\Channel[] build arguments |
|
| 217 | 217 | */ |
| 218 | 218 | protected function getReplyHandlerArguments($config){ |
| 219 | 219 | $args = array( |
@@ -259,6 +259,7 @@ discard block |
||
| 259 | 259 | * @access protected |
| 260 | 260 | * @param string the configuration type ofthe channel (e.g.: 'reply', 'request') |
| 261 | 261 | * @param object $config configuration object to return channel from. |
| 262 | + * @param string $type |
|
| 262 | 263 | * @return \PEIP\INF\Channel\Channel reply-channel |
| 263 | 264 | */ |
| 264 | 265 | public function doGetChannel($type, $config){ |
@@ -64,7 +64,6 @@ |
||
| 64 | 64 | * @static |
| 65 | 65 | * @access public |
| 66 | 66 | * @implements \PEIP\INF\Base\Buildable |
| 67 | - * @param string $name the name of the header |
|
| 68 | 67 | * @return boolean wether the header is set |
| 69 | 68 | */ |
| 70 | 69 | public static function build(array $arguments = array()){ |
@@ -342,7 +342,7 @@ |
||
| 342 | 342 | * |
| 343 | 343 | * @access protected |
| 344 | 344 | * @param object $config |
| 345 | - * @return object the initialized service instance |
|
| 345 | + * @return \PEIP\INF\Context\ContextPlugin|null the initialized service instance |
|
| 346 | 346 | */ |
| 347 | 347 | protected function initService($config) { |
| 348 | 348 | $id = trim((string)$config['id']); |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | * @param array $headers headers of the event-object as key/value pairs |
| 88 | 88 | * @param string $eventClass event-class to create instances from |
| 89 | 89 | * @return |
| 90 | - * @see EventBuilder |
|
| 90 | + boolean|null @see EventBuilder |
|
| 91 | 91 | */ |
| 92 | 92 | public function buildAndNotify($name, $object, array $headers = array(), $eventClass = false, $type = false){
|
| 93 | 93 | if(!$this->hasListeners($name, ($object))){
|