Newscoop\Services\AttachmentService::getAttachmentUrl PHP Method

getAttachmentUrl() public method

public getAttachmentUrl ( $attachment )
    public function getAttachmentUrl($attachment)
    {
        return $this->router->generate('newscoop_newscoop_attachments_downloadattachment', array('id' => $attachment->getId(), 'name' => $attachment->getName()), true);
    }