lib/TEventListener.php
public function removeListener(
        string $event,
        callable $listener
    )
    {
        if ($this->_events[$event] ?? false) {

            $key = array_search(
                $listener,
                $this->_events[$event],
                true
            );

            if ($key !== false) {

                array_splice(
                    $this->_events[$event],
                    $key,
                    1
                );
            }
        }

        return $this;
    }
public function removeListener(
        string $event,
        callable $listener
    )
    {
        if ($this->_events[$event] ?? false) {

            $key = array_search(
                $listener,
                $this->_events[$event],
                true
            );

            if ($key !== false) {

                array_splice(
                    $this->_events[$event],
                    $key,
                    1
                );
            }
        }

        return $this;
    }
public function removeListener ( string $ event , callable $ listener ) { if ( $ this -> _events [ $ event ] ?? false ) { $ key = array_search ( $ listener , $ this -> _events [ $ event ] , true ) ; if ( $ key !== false ) { array_splice ( $ this -> _events [ $ event ] , $ key , 1 ) ; } } return $ this ; }
Remove specific listener of an event.

@param string $event
@param callable $listener

@return static
Remove specific listener of an event .