Skip to content
Snippets Groups Projects
Commit a6a96983 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Connect the connector

parent 4fb9bd71
No related branches found
No related tags found
No related merge requests found
Pipeline #197104 failed
...@@ -2,3 +2,4 @@ services: ...@@ -2,3 +2,4 @@ services:
Dbp\Relay\BlobConnectorLocalBundle\Service\LocalDataSystemService: Dbp\Relay\BlobConnectorLocalBundle\Service\LocalDataSystemService:
autowire: true autowire: true
autoconfigure: true autoconfigure: true
public: true
\ No newline at end of file
...@@ -11,6 +11,8 @@ use Dbp\Relay\CoreBundle\Exception\ApiError; ...@@ -11,6 +11,8 @@ use Dbp\Relay\CoreBundle\Exception\ApiError;
use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Dbp\Relay\BlobBundle\Service\DatasystemProviderServiceInterface;
class LocalDataSystemService implements DatasystemProviderServiceInterface class LocalDataSystemService implements DatasystemProviderServiceInterface
{ {
...@@ -35,15 +37,14 @@ class LocalDataSystemService implements DatasystemProviderServiceInterface ...@@ -35,15 +37,14 @@ class LocalDataSystemService implements DatasystemProviderServiceInterface
public function saveFile(FileData &$fileData): ?FileData public function saveFile(FileData &$fileData): ?FileData
{ {
dump("------------YES--------------------"); /* try {
try {
$this->em->persist($fileData); $this->em->persist($fileData);
$this->em->flush(); $this->em->flush();
} catch (\Exception $e) { } catch (\Exception $e) {
throw ApiError::withDetails(Response::HTTP_INTERNAL_SERVER_ERROR, 'File could not be created!', 'blob:form-not-created', ['message' => $e->getMessage()]); throw ApiError::withDetails(Response::HTTP_INTERNAL_SERVER_ERROR, 'File could not be created!', 'blob:form-not-created', ['message' => $e->getMessage()]);
} }
*/
return null; return $fileData;
} }
public function renameFile(FileData &$fileData): ?FileData public function renameFile(FileData &$fileData): ?FileData
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment