public function getVendors(DateTime $lastUpdate = null)
    {
        $this->dispatcher->dispatch('before.vendor.get');
        $return = $this->mirakl->getVendors($lastUpdate);

        $return = array_filter($return, array($this, 'filterVendors'));

        $this->dispatcher->dispatch('after.vendor.get');
        return $return;
    }
public function getVendors(DateTime $lastUpdate = null)
    {
        $this->dispatcher->dispatch('before.vendor.get');
        $return = $this->mirakl->getVendors($lastUpdate);

        $return = array_filter($return, array($this, 'filterVendors'));

        $this->dispatcher->dispatch('after.vendor.get');
        return $return;
    }
public function getVendors ( DateTime $ lastUpdate = null ) { $ this -> dispatcher -> dispatch ( 'before.vendor.get' ) ; $ return = $ this -> mirakl -> getVendors ( $ lastUpdate ) ; $ return = array_filter ( $ return , array ( $ this , 'filterVendors' ) ) ; $ this -> dispatcher -> dispatch ( 'after.vendor.get' ) ; return $ return ; }
Fetch the vendors from Mirakl.

@param DateTime $lastUpdate

@return array
Fetch the vendors from Mirakl .