public function persister(PersisterInterface $persister = null)
    {
        if ($persister === null && $this->persister === null) {
            $persister = new ElasticSearchPersister();
        }

        if ($persister === null) {
            return $this->persister;
        }

        return $this->persister = $persister;
    }
public function persister(PersisterInterface $persister = null)
    {
        if ($persister === null && $this->persister === null) {
            $persister = new ElasticSearchPersister();
        }

        if ($persister === null) {
            return $this->persister;
        }

        return $this->persister = $persister;
    }
public function persister ( PersisterInterface $ persister = null ) { if ( $ persister === null && $ this -> persister === null ) { $ persister = new ElasticSearchPersister ( ) ; } if ( $ persister === null ) { return $ this -> persister ; } return $ this -> persister = $ persister ; }
Sets the persister object to use for logging al audit events.
If called if no arguments, it will return the ElasitSearchPersister.

@param PersisterInterface $persister The persister object to use
@return PersisterInterface The configured persister
Sets the persister object to use for logging al audit events . If called if no arguments it will return the ElasitSearchPersister .