$this->validateAuthentication();
$url = $request->request->get('url');
+ $title = $request->request->get('title');
$isArchived = (int) $request->request->get('archive');
$isStarred = (int) $request->request->get('starred');
);
}
+ if (!is_null($title)) {
+ $entry->setTitle($title);
+ }
+
$tags = $request->request->get('tags', '');
if (!empty($tags)) {
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
*/
private function renderJsonResponse($json)
{
- return new Response($json, 200, array('application/json'));
+ return new Response($json, 200, ['application/json']);
}
}