Skip to content

Commit

Permalink
Move all blob related code into a blob subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Sep 24, 2024
1 parent bf429b8 commit 84cf995
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 17 deletions.
3 changes: 2 additions & 1 deletion src/Service/BlobService.php → src/Blob/BlobService.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

declare(strict_types=1);

namespace Dbp\Relay\CabinetBundle\Service;
namespace Dbp\Relay\CabinetBundle\Blob;

use Dbp\Relay\BlobLibrary\Api\BlobApi;
use Dbp\Relay\CabinetBundle\Authorization\AuthorizationService;
use Dbp\Relay\CabinetBundle\Service\ConfigurationService;
use Dbp\Relay\CoreBundle\Exception\ApiError;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

declare(strict_types=1);

namespace Dbp\Relay\CabinetBundle\Controller;
namespace Dbp\Relay\CabinetBundle\Blob;

use Dbp\Relay\CabinetBundle\Authorization\AuthorizationService;
use Dbp\Relay\CabinetBundle\Service\BlobService;
use Dbp\Relay\CoreBundle\Exception\ApiError;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
Expand Down
2 changes: 1 addition & 1 deletion src/Command/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Dbp\Relay\CabinetBundle\Command;

use Dbp\Relay\CabinetBundle\Service\BlobService;
use Dbp\Relay\CabinetBundle\Blob\BlobService;
use Dbp\Relay\CabinetBundle\Service\CabinetService;
use Dbp\Relay\CabinetBundle\TypesenseSync\TypesenseClient;
use Symfony\Component\Console\Command\Command;
Expand Down
2 changes: 1 addition & 1 deletion src/Command/DeleteAllFilesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Dbp\Relay\CabinetBundle\Command;

use Dbp\Relay\BlobLibrary\Api\BlobApiError;
use Dbp\Relay\CabinetBundle\Service\BlobService;
use Dbp\Relay\CabinetBundle\Blob\BlobService;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\InputInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Command/DeleteFileCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Dbp\Relay\CabinetBundle\Command;

use Dbp\Relay\BlobLibrary\Api\BlobApiError;
use Dbp\Relay\CabinetBundle\Service\BlobService;
use Dbp\Relay\CabinetBundle\Blob\BlobService;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Command/UploadFileCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Dbp\Relay\CabinetBundle\Command;

use Dbp\Relay\BlobLibrary\Api\BlobApiError;
use Dbp\Relay\CabinetBundle\Service\BlobService;
use Dbp\Relay\CabinetBundle\Blob\BlobService;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/api_resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resources:
signature:
class: ApiPlatform\Metadata\Get
method: GET
controller: Dbp\Relay\CabinetBundle\Controller\BlobSignatureController
controller: Dbp\Relay\CabinetBundle\Blob\BlobSignatureController
uriTemplate: "/signature"
normalizationContext:
groups: [ "Cabinet:output" ]
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ typesense_api:
resource: ../../TypesenseApi/
type: annotation

controller_api:
resource: ../../Controller/
blob_api:
resource: ../../Blob/
type: annotation
6 changes: 0 additions & 6 deletions src/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ services:
autowire: true
autoconfigure: true

Dbp\Relay\CabinetBundle\Controller\:
tags: [ 'controller.service_arguments' ]
resource: '../../Controller'
autowire: true
autoconfigure: true

Dbp\Relay\CabinetBundle\Service\ConfigurationService:
autowire: true
autoconfigure: true
Expand Down
1 change: 1 addition & 0 deletions src/Service/CabinetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Dbp\Relay\BasePersonBundle\API\PersonProviderInterface;
use Dbp\Relay\BasePersonBundle\Entity\Person;
use Dbp\Relay\CabinetBundle\Blob\BlobService;
use Dbp\Relay\CoreBundle\Exception\ApiError;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerAwareInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Service/HealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Dbp\Relay\CabinetBundle\Service;

use Dbp\Relay\CabinetBundle\Blob\BlobService;
use Dbp\Relay\CabinetBundle\TypesenseSync\TypesenseClient;
use Dbp\Relay\CoreBundle\HealthCheck\CheckInterface;
use Dbp\Relay\CoreBundle\HealthCheck\CheckOptions;
Expand Down
2 changes: 1 addition & 1 deletion src/TypesenseSync/TypesenseSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace Dbp\Relay\CabinetBundle\TypesenseSync;

use Dbp\Relay\CabinetBundle\Blob\BlobService;
use Dbp\Relay\CabinetBundle\PersonSync\PersonSyncInterface;
use Dbp\Relay\CabinetBundle\Service\BlobService;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
Expand Down

0 comments on commit 84cf995

Please sign in to comment.