File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,22 @@ public function addListener(ListenerInterface $listener)
7777 return $ this ;
7878 }
7979
80+ /**
81+ * {@inheritDoc}
82+ */
83+ public function delListener ($ name )
84+ {
85+ if ($ name instanceof ListenerInterface) {
86+ $ name = $ name ->getName ();
87+ }
88+
89+ if ($ this ->isListener ($ name ) === true ) {
90+ unset($ this ->listeners [$ name ]);
91+ }
92+
93+ return $ this ;
94+ }
95+
8096 /**
8197 * {@inheritDoc}
8298 */
Original file line number Diff line number Diff line change @@ -132,6 +132,13 @@ public function getApiBaseUrl();
132132 */
133133 public function addListener (ListenerInterface $ listener );
134134
135+ /**
136+ * @access public
137+ * @param ListenerInterface|string $name
138+ * @return $this
139+ */
140+ public function delListener ($ name );
141+
135142 /**
136143 * Get listener interface
137144 *
You can’t perform that action at this time.
0 commit comments