for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the BenGorFile package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BenGorFile\FileBundle\Controller\Api;
use BenGorFile\FileBundle\Controller\ByHashUploadAction;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
/**
* @author Beñat Espiña <[email protected]>
class ByHashUploadController extends Controller
{
use ByHashUploadAction;
public function uploadAction(Request $request, $fileClass)
return new JsonResponse(
$this->upload(
$request,
$this->get('bengor_file.' . $fileClass . '.command_bus'),
$fileClass
)
);
}