protected function persist(array $data)
    {
        Assertion::notEmpty(
            $this->persistors,
            'No persistor attached.',
            DataAggregatorException::NO_PERSISTOR_ATTACHED
        );

        foreach ($this->persistors as $persistor) {
            try {
                $persistor->persist($data);

            } catch (PersistorException $e) {
                $this->getLogger()->error($e->getMessage());
            }
        }
    }
protected function persist(array $data)
    {
        Assertion::notEmpty(
            $this->persistors,
            'No persistor attached.',
            DataAggregatorException::NO_PERSISTOR_ATTACHED
        );

        foreach ($this->persistors as $persistor) {
            try {
                $persistor->persist($data);

            } catch (PersistorException $e) {
                $this->getLogger()->error($e->getMessage());
            }
        }
    }
protected function persist ( array $ data ) { Assertion :: notEmpty ( $ this -> persistors , 'No persistor attached.' , DataAggregatorException :: NO_PERSISTOR_ATTACHED ) ; foreach ( $ this -> persistors as $ persistor ) { try { $ persistor -> persist ( $ data ) ; } catch ( PersistorException $ e ) { $ this -> getLogger ( ) -> error ( $ e -> getMessage ( ) ) ; } } }
Forwards the gathered data to every registered output handler.

@param array $data

@throws InvalidArgumentException in case no persistor has been attached.
Forwards the gathered data to every registered output handler .