return $this->redirect($this->generateUrl('view', ['id' => $existingEntry->getId()]));
}
- $entry->setGivenUrl($entry->getUrl());
$this->updateEntry($entry);
$em = $this->getDoctrine()->getManager();
// so we'll be able to refetch it in the future
$content['url'] = !empty($content['url']) ? $content['url'] : $url;
+ $entry->setGivenUrl($url);
$this->stockEntry($entry, $content);
}
$this->logInAs('admin');
$client = $this->getClient();
- $url = 'https://fashionunited.com/news/business/jigsaw-posts-8-percent-increase-in-annual-sales/2017070316404';
+ $url = 'http://bit.ly/2t8Fwre';
$crawler = $client->request('GET', '/new');