Пример #1
0
 /**
  *
  * @param  Article $article
  * @return string
  */
 public function generateUrl(Article $article)
 {
     $journalUrl = $this->journalService->generateUrl($article->getJournal());
     return $journalUrl . '/' . $article->getSlug();
 }
Пример #2
0
 public function generateJournalUrl($journal)
 {
     return $this->journalService->generateUrl($journal);
 }