Skip to content

Commit

Permalink
getRiaLogo function
Browse files Browse the repository at this point in the history
  • Loading branch information
azatyan committed Jul 5, 2019
1 parent 9a01037 commit ca35726
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Mailer/TwigSwiftMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,13 @@ public function sendCustodianWorkflowDocuments(User $ria, Workflow $workflow)
*/
private function getRiaLogo($ria_id){

// @todo: write function returning full url of uploaded RIA logo//rx_file_download
$url = $this->router->generate('rx_file_download',[
'ria_id' => $ria_id
],UrlGeneratorInterface::ABSOLUTE_URL);

if(file_exists($url)){
return $url;
};
return '/img/logo.png';

}
Expand Down

0 comments on commit ca35726

Please sign in to comment.