Skip to content

Commit

Permalink
Moved all the entities to the src folder on the core side.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Mar 17, 2024
1 parent 63c890b commit 31094b0
Show file tree
Hide file tree
Showing 31 changed files with 39 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/Controller/ApiAdminServersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
use Monarc\BackOffice\Service\ServerService;
use Monarc\BackOffice\Validator\InputValidator\Server\PostServerDataInputValidator;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\User;
use Monarc\Core\Model\Entity\UserRole;
use Monarc\Core\Entity\User;
use Monarc\Core\Entity\UserRole;
use Monarc\Core\Service\ConnectedUserService;

class ApiAdminServersController extends AbstractRestfulController
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\AnrService;
use Monarc\Core\Validator\InputValidator\Anr\PatchThresholdsDataInputValidator;

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrInstancesConsequencesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\InstanceConsequenceService;
use Monarc\Core\Validator\InputValidator\InstanceConsequence\PatchConsequenceDataInputValidator;

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrInstancesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\InstanceService;
use Monarc\Core\Validator\InputValidator\Instance\CreateInstanceDataInputValidator;
use Monarc\Core\Validator\InputValidator\Instance\PatchInstanceDataInputValidator;
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrInstancesMetadataFieldsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Exception\Exception;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\AnrInstanceMetadataFieldService;

class ApiAnrInstancesMetadataFieldsController extends AbstractRestfulControllerRequestHandler
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrInstancesRisksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\InstanceRiskService;
use Monarc\Core\Validator\InputValidator\InstanceRisk\UpdateInstanceRiskDataInputValidator;

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrInstancesRisksOpController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\InstanceRiskOpService;
use Monarc\Core\Validator\InputValidator\InstanceRiskOp\PatchInstanceRiskOpDataInputValidator;
use Monarc\Core\Validator\InputValidator\InstanceRiskOp\UpdateInstanceRiskOpDataInputValidator;
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrLibraryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Exception\Exception;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\ObjectService;

class ApiAnrLibraryController extends AbstractRestfulControllerRequestHandler
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrRisksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\InstanceRiskService;

class ApiAnrRisksController extends AbstractRestfulControllerRequestHandler
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrRisksOpController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\InstanceRiskOpService;

class ApiAnrRisksOpController extends AbstractRestfulControllerRequestHandler
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrScalesCommentsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\InputFormatter\ScaleComment\GetScaleCommentsInputFormatter;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\ScaleCommentService;

class ApiAnrScalesCommentsController extends AbstractRestfulControllerRequestHandler
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrScalesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\ScaleService;
use Monarc\Core\Validator\InputValidator\Scale\UpdateScalesDataInputValidator;

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiAnrScalesTypesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\ScaleImpactTypeService;

class ApiAnrScalesTypesController extends AbstractRestfulControllerRequestHandler
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiObjectsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\InputFormatter\Object\GetObjectInputFormatter;
use Monarc\Core\InputFormatter\Object\GetObjectsInputFormatter;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\ObjectService;
use Monarc\Core\Validator\InputValidator\Object\PostObjectDataInputValidator;

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiObjectsDuplicationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Exception\Exception;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\ObjectService;

class ApiObjectsDuplicationController extends AbstractRestfulControllerRequestHandler
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiOperationalRisksScalesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Exception\Exception;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\OperationalRiskScaleService;

class ApiOperationalRisksScalesController extends AbstractRestfulControllerRequestHandler
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiQuestionsChoicesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\AbstractController;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\QuestionChoice;
use Monarc\Core\Entity\QuestionChoice;
use Monarc\Core\Model\Table\QuestionChoiceTable;
use Monarc\Core\Service\QuestionChoiceService;

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiRolfRisksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\AbstractController;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Measure;
use Monarc\Core\Entity\Measure;
use Monarc\Core\Service\RolfRiskService;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiSoaScaleCommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\AbstractRestfulControllerRequestHandler;
use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\Anr;
use Monarc\Core\Entity\Anr;
use Monarc\Core\Service\SoaScaleCommentService;

class ApiSoaScaleCommentController extends AbstractRestfulControllerRequestHandler
Expand Down
5 changes: 3 additions & 2 deletions src/Controller/ApiUserProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Monarc\BackOffice\Controller;

use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\UserSuperClass;
use Monarc\Core\Entity\UserSuperClass;
use Monarc\Core\Service\ConnectedUserService;
use Monarc\Core\Service\UserProfileService;
use Laminas\Mvc\Controller\AbstractRestfulController;
Expand All @@ -20,9 +20,10 @@ class ApiUserProfileController extends AbstractRestfulController

private UserProfileService $userProfileService;

private UserSuperClass $connectedUser;
private PatchProfileDataInputValidator $patchProfileDataInputValidator;

private UserSuperClass $connectedUser;

public function __construct(
PatchProfileDataInputValidator $patchProfileDataInputValidator,
UserProfileService $userProfileService,
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiUserRecoveryCodesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Exception\Exception;
use Monarc\Core\Model\Entity\UserSuperClass;
use Monarc\Core\Entity\UserSuperClass;
use Monarc\Core\Service\ConnectedUserService;
use Monarc\Core\Table\UserTable;
use Laminas\Mvc\Controller\AbstractRestfulController;
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiUserTwoFAController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Monarc\BackOffice\Controller;

use Monarc\Core\Controller\Handler\ControllerRequestResponseHandlerTrait;
use Monarc\Core\Model\Entity\UserSuperClass;
use Monarc\Core\Entity\UserSuperClass;
use RobThree\Auth\TwoFactorAuth;
use RobThree\Auth\Providers\Qr\EndroidQrCodeProvider;
use Monarc\Core\Service\ConnectedUserService;
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Monarc\Core\Model\Entity\Traits\CreateEntityTrait;
use Monarc\Core\Model\Entity\Traits\UpdateEntityTrait;
use Monarc\Core\Entity\Traits\CreateEntityTrait;
use Monarc\Core\Entity\Traits\UpdateEntityTrait;

/**
* @ORM\Table(name="clients")
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/ClientModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
namespace Monarc\BackOffice\Entity;

use Doctrine\ORM\Mapping as ORM;
use Monarc\Core\Model\Entity\Traits\CreateEntityTrait;
use Monarc\Core\Model\Entity\Traits\UpdateEntityTrait;
use Monarc\Core\Entity\Traits\CreateEntityTrait;
use Monarc\Core\Entity\Traits\UpdateEntityTrait;

/**
* @ORM\Table(name="clients_models")
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Monarc\Core\Model\Entity\Traits\CreateEntityTrait;
use Monarc\Core\Model\Entity\Traits\UpdateEntityTrait;
use Monarc\Core\Entity\Traits\CreateEntityTrait;
use Monarc\Core\Entity\Traits\UpdateEntityTrait;

/**
* @ORM\Table(name="servers")
Expand Down
4 changes: 2 additions & 2 deletions src/Middleware/AnrValidationMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use Fig\Http\Message\StatusCodeInterface;
use Laminas\Diactoros\ResponseFactory;
use Laminas\Router\RouteMatch;
use Monarc\Core\Model\Entity\UserRole;
use Monarc\Core\Model\Entity\UserSuperClass;
use Monarc\Core\Entity\UserRole;
use Monarc\Core\Entity\UserSuperClass;
use Monarc\Core\Service\ConnectedUserService;
use Monarc\Core\Table\AnrTable;
use Psr\Http\Message\ResponseInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Service/ClientService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
use Monarc\BackOffice\Table\ServerTable;
use Monarc\Core\Exception\Exception;
use Monarc\Core\InputFormatter\FormattedInputParams;
use Monarc\Core\Model\Entity\Model;
use Monarc\Core\Model\Entity\User;
use Monarc\Core\Entity\Model;
use Monarc\Core\Entity\User;
use Monarc\Core\Service\ConnectedUserService;
use Monarc\Core\Table\ModelTable;
use RuntimeException;
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ServerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Monarc\BackOffice\Entity\Server;
use Monarc\BackOffice\Table\ServerTable;
use Monarc\Core\InputFormatter\FormattedInputParams;
use Monarc\Core\Model\Entity\User;
use Monarc\Core\Entity\User;
use Monarc\Core\Service\ConnectedUserService;

class ServerService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Monarc\BackOffice\Validator\InputValidator\Asset;

use Laminas\Validator\InArray;
use Monarc\Core\Model\Entity\AssetSuperClass;
use Monarc\Core\Entity\AssetSuperClass;
use Monarc\Core\Validator\InputValidator\Asset\PostAssetDataInputValidator as CorePostAssetDataInputValidator;

class PostAssetDataInputValidator extends CorePostAssetDataInputValidator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Monarc\BackOffice\Validator\InputValidator\Threat;

use Laminas\Validator\InArray;
use Monarc\Core\Model\Entity\ThreatSuperClass;
use Monarc\Core\Entity\ThreatSuperClass;
use Monarc\Core\Validator\InputValidator\Threat\PostThreatDataInputValidator as CorePostThreatDataInputValidator;

class PostThreatDataInputValidator extends CorePostThreatDataInputValidator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Monarc\BackOffice\Validator\InputValidator\Vulnerability;

use Laminas\Validator\InArray;
use Monarc\Core\Model\Entity\VulnerabilitySuperClass;
use Monarc\Core\Entity\VulnerabilitySuperClass;
use Monarc\Core\Validator\InputValidator\Vulnerability;

class PostVulnerabilityDataInputValidator extends Vulnerability\PostVulnerabilityDataInputValidator
Expand Down

0 comments on commit 31094b0

Please sign in to comment.