src/Listener/RedirectListener.php
public function reader($key, $reader = null)
    {
        if ($reader === null) {
            return $this->getConfig('readers.' . $key);
        }

        return $this->setConfig('readers.' . $key, $reader);
    }
public function reader($key, $reader = null)
    {
        if ($reader === null) {
            return $this->getConfig('readers.' . $key);
        }

        return $this->setConfig('readers.' . $key, $reader);
    }
public function reader ( $ key , $ reader = null ) { if ( $ reader === null ) { return $ this -> getConfig ( 'readers.' . $ key ) ; } return $ this -> setConfig ( 'readers.' . $ key , $ reader ) ; }
Add or replace a reader

@param string $key Key
@param mixed $reader Reader
@return mixed
Add or replace a reader