public function getPersister($key)
    {
        if (empty($key) || false === $this->hasPersister($key)) {
            throw PersisterException::persisterNotFound($key);
        }
        return $this->persisters[$key];
    }
public function getPersister($key)
    {
        if (empty($key) || false === $this->hasPersister($key)) {
            throw PersisterException::persisterNotFound($key);
        }
        return $this->persisters[$key];
    }
public function getPersister ( $ key ) { if ( empty ( $ key ) || false === $ this -> hasPersister ( $ key ) ) { throw PersisterException :: persisterNotFound ( $ key ) ; } return $ this -> persisters [ $ key ] ; }
Gets a Persister service by key.

@param   string  $key
@return  PersisterInterface
@throws  PersisterException  If the service was not found.
Gets a Persister service by key .