public function downloadAction($type, $identifier)
    {
        $m = __METHOD__.' is deprecated, consider using the '.FileDownloadAction::class.' action/service instead';
        @trigger_error($m, E_USER_DEPRECATED);

        return $this->get(FileDownloadAction::class)->__invoke($type, $identifier);
    }
public function downloadAction($type, $identifier)
    {
        $m = __METHOD__.' is deprecated, consider using the '.FileDownloadAction::class.' action/service instead';
        @trigger_error($m, E_USER_DEPRECATED);

        return $this->get(FileDownloadAction::class)->__invoke($type, $identifier);
    }
@param string     $type
@param string|int $identifier

@throws \Exception

@return Response