@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | Reflection_Pool::getInstance( |
| 68 | 68 | $object->getContent() |
| 69 | 69 | ) |
| 70 | - ), |
|
| 71 | - $object |
|
| 72 | - ); |
|
| 70 | + ), |
|
| 71 | + $object |
|
| 72 | + ); |
|
| 73 | 73 | }else{
|
| 74 | 74 | throw new \InvalidArgumentException('instance of \PEIP\INF\Event\Event must contain subject');
|
| 75 | 75 | } |
@@ -78,18 +78,18 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | } //put your code here |
| 80 | 80 | |
| 81 | - /** |
|
| 82 | - * Creates an event-object with given object as content/subject and notifies |
|
| 83 | - * all registers listeners of the event. |
|
| 84 | - * |
|
| 85 | - * @access public |
|
| 86 | - * @param string $name name of the event |
|
| 87 | - * @param object $object the subject of the event |
|
| 88 | - * @param array $headers headers of the event-object as key/value pairs |
|
| 89 | - * @param string $eventClass event-class to create instances from |
|
| 90 | - * @return |
|
| 91 | - * @see EventBuilder |
|
| 92 | - */ |
|
| 81 | + /** |
|
| 82 | + * Creates an event-object with given object as content/subject and notifies |
|
| 83 | + * all registers listeners of the event. |
|
| 84 | + * |
|
| 85 | + * @access public |
|
| 86 | + * @param string $name name of the event |
|
| 87 | + * @param object $object the subject of the event |
|
| 88 | + * @param array $headers headers of the event-object as key/value pairs |
|
| 89 | + * @param string $eventClass event-class to create instances from |
|
| 90 | + * @return |
|
| 91 | + * @see EventBuilder |
|
| 92 | + */ |
|
| 93 | 93 | public function buildAndNotify($name, $object, array $headers = array(), $eventClass = false, $type = false){
|
| 94 | 94 | if(!$this->hasListeners($name, ($object))){
|
| 95 | 95 | return false; |