Ejemplo n.º 1
0
 public function execute(Request $request, WorkingFolder $workingFolder, EventDispatcher $dispatcher, Config $config, CacheManager $cache, ThumbnailRepository $thumbsRepository)
 {
     // Don't add info about current folder to this command response
     $workingFolder->omitResponseInfo();
     $responseData = parent::execute($request, $workingFolder, $dispatcher, $config, $cache, $thumbsRepository);
     // Get url to a file
     if (isset($responseData['fileName'])) {
         $responseData['url'] = $workingFolder->getFileUrl($responseData['fileName']);
     }
     return $responseData;
 }