Service Configuration possibility use "orderby" and "order" for generate url
ethsam opened this issue · comments
Hi,
in my service i add "orderby" and "order" for url generate :
public function getConf($extra = []) {
$dateNow = new \DateTime('now', new \DateTimeZone('Indian/Reunion'));
$year = $this->getDirectoryExist($dateNow->format('Y'));
$month = $this->getDirectoryExist($dateNow->format('Y') . "/" . $dateNow->format('m'));
$day = $this->getDirectoryExist($dateNow->format('Y') . "/" . $dateNow->format('m') . "/" . $dateNow->format('d'));
$localUri = "../public/assets/images/articles/". $dateNow->format('Y') . "/" . $dateNow->format('m') . "/" . $dateNow->format('d');
return [
'dir' => $localUri,
'orderby' => 'date',
'order' => 'desc',
'type' => 'image',
'tree' => false,
];
}
Not working...
Hi, "orderby" and "order" are only configurable in the url:
{{ path('file_manager', {'conf':'perso', 'orderby': 'date', 'order' : 'desc'}) }}
or
/manager/?conf=perso&orderby=date&order=desc