mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
add personalisation logo
This commit is contained in:
@@ -14,6 +14,7 @@ use Alchemy\Phrasea\Application;
|
||||
use Alchemy\Phrasea\Controller\Controller;
|
||||
use Alchemy\Phrasea\Core\Configuration\PropertyAccess;
|
||||
use Alchemy\Phrasea\Core\Configuration\RegistryFormManipulator;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class SetupController extends Controller
|
||||
@@ -61,4 +62,15 @@ class SetupController extends Controller
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function sendPersonaliseLogo(Request $request)
|
||||
{
|
||||
if(null !== $blob = $request->request->get('fileToUpload')){
|
||||
$result = $this->app->getApplicationBox()->write_application_logo($this->app['filesystem'], $blob);
|
||||
|
||||
return new JsonResponse($result);
|
||||
}
|
||||
|
||||
return new JsonResponse('No file send');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user