CronController
extends BaseCronController
in package
Class BaseCronController
Table of Contents
Properties
- $em : EntityManager
- $l : Logger
- $trans : Translator|NativeArray
- $handler : HandlerComponent
- Cronjob handler.
- $modules : array<string|int, Module>
- Api modules.
- $start : float
- Cronjob start in microtime.
- $entriesWithoutDeadlineService : EntriesWithoutDeadlineService
- $entryDataReceivedService : EntryDataReceivedService
- $entryReportRepository : EntryReportRepository
- $entryReportService : EntryReportService
- $entryRepository : EntryRepository
- $entrySubmissionService : EntrySubmissionService
- $googleCloudStorageComponent : GoogleCloudStorageComponent
- $internalMailingComponent : InternalMailingComponent
- $jobRepository : JobRepository
- $reportMissingInfoProviderService : ReportMissingInfoProviderService
- $submitWithoutNotificationService : SubmitWithoutNotificationService
Methods
- __destruct() : mixed
- Finish cronjob and log the report.
- alertNotificationAction() : mixed
- changeTaxDeskPlFileNamesAction() : mixed
- deleteProformaZipsAction() : mixed
- execPrep() : mixed
- extractEcBlockedEntriesAction() : mixed
- generateExportFileWithAllReportMissing() : mixed
- handleAllGbEcBeforeBrexitAction() : mixed
- handleCreateJobForSubmittedEntriesWithFileWithoutSummaryAction() : mixed
- handleCreateSubmissionForEntryIdListAction() : mixed
- handleMakeNewFilesPublicAction() : mixed
- handleMoveVatcomZipsAction() : mixed
- handleRemoveOldVatcomZipsAction() : mixed
- handleUpdateEntriesWithMissingDeadlineAction() : mixed
- handleUpdateJobResultsAction() : mixed
- initialize() : mixed
- Disable view render and start cronjob.
- migrateEntrySubmissionsAction() : mixed
- Do not execute migration 20240404080802 because the entity EntryReport will be broken in order to get the values for the required columns.
- sendMailWithExportedFile() : mixed
- submitEntriesByIdAction() : mixed
- sumhelp() : mixed
- updateAllEntryDataReceivedAction() : mixed
- updateEntryDataReceivedByUserIdAction() : mixed
- createTemporaryFileLocallyWithContent() : mixed
- deleteFileFromWrongBucket() : mixed
- deleteTemporaryFile() : mixed
- getFileContentFromWrongBucket() : string|null
- getGcsFilePathFromCorrectBucket() : string
- getRemotePath() : string
- uploadFileToCorrectBucket() : mixed
Properties
$em read-only
public
EntityManager
$em
$l
public
Logger
$l
$trans read-only
public
Translator|NativeArray
$trans
$handler
Cronjob handler.
protected
HandlerComponent
$handler
$modules
Api modules.
protected
array<string|int, Module>
$modules
$start
Cronjob start in microtime.
protected
float
$start
$entriesWithoutDeadlineService
private
EntriesWithoutDeadlineService
$entriesWithoutDeadlineService
$entryDataReceivedService
private
EntryDataReceivedService
$entryDataReceivedService
$entryReportRepository
private
EntryReportRepository
$entryReportRepository
$entryReportService
private
EntryReportService
$entryReportService
$entryRepository
private
EntryRepository
$entryRepository
$entrySubmissionService
private
EntrySubmissionService
$entrySubmissionService
$googleCloudStorageComponent
private
GoogleCloudStorageComponent
$googleCloudStorageComponent
$internalMailingComponent
private
InternalMailingComponent
$internalMailingComponent
$jobRepository
private
JobRepository
$jobRepository
$reportMissingInfoProviderService
private
ReportMissingInfoProviderService
$reportMissingInfoProviderService
$submitWithoutNotificationService
private
SubmitWithoutNotificationService
$submitWithoutNotificationService
Methods
__destruct()
Finish cronjob and log the report.
public
__destruct() : mixed
alertNotificationAction()
public
alertNotificationAction() : mixed
changeTaxDeskPlFileNamesAction()
public
changeTaxDeskPlFileNamesAction() : mixed
deleteProformaZipsAction()
public
deleteProformaZipsAction() : mixed
execPrep()
public
execPrep(mixed $s, mixed $b, mixed $t) : mixed
Parameters
- $s : mixed
- $b : mixed
- $t : mixed
extractEcBlockedEntriesAction()
public
extractEcBlockedEntriesAction() : mixed
Tags
generateExportFileWithAllReportMissing()
public
generateExportFileWithAllReportMissing(mixed $reportMissingList, mixed $endDate) : mixed
Parameters
- $reportMissingList : mixed
- $endDate : mixed
handleAllGbEcBeforeBrexitAction()
public
handleAllGbEcBeforeBrexitAction() : mixed
handleCreateJobForSubmittedEntriesWithFileWithoutSummaryAction()
public
handleCreateJobForSubmittedEntriesWithFileWithoutSummaryAction() : mixed
handleCreateSubmissionForEntryIdListAction()
public
handleCreateSubmissionForEntryIdListAction(string $entryIdList) : mixed
Parameters
- $entryIdList : string
handleMakeNewFilesPublicAction()
public
handleMakeNewFilesPublicAction() : mixed
handleMoveVatcomZipsAction()
public
handleMoveVatcomZipsAction() : mixed
handleRemoveOldVatcomZipsAction()
public
handleRemoveOldVatcomZipsAction() : mixed
handleUpdateEntriesWithMissingDeadlineAction()
public
handleUpdateEntriesWithMissingDeadlineAction(string $periodLabel, string $labels) : mixed
Parameters
- $periodLabel : string
- $labels : string
handleUpdateJobResultsAction()
public
handleUpdateJobResultsAction() : mixed
Tags
initialize()
Disable view render and start cronjob.
public
initialize() : mixed
migrateEntrySubmissionsAction()
Do not execute migration 20240404080802 because the entity EntryReport will be broken in order to get the values for the required columns.
public
migrateEntrySubmissionsAction() : mixed
sendMailWithExportedFile()
public
sendMailWithExportedFile(mixed $content, mixed $filename, mixed $contentType, mixed $endDate) : mixed
Parameters
- $content : mixed
- $filename : mixed
- $contentType : mixed
- $endDate : mixed
submitEntriesByIdAction()
public
submitEntriesByIdAction(mixed $entryIds) : mixed
Parameters
- $entryIds : mixed
sumhelp()
public
sumhelp(mixed $h2Body) : mixed
Parameters
- $h2Body : mixed
updateAllEntryDataReceivedAction()
public
updateAllEntryDataReceivedAction() : mixed
updateEntryDataReceivedByUserIdAction()
public
updateEntryDataReceivedByUserIdAction(mixed $userId) : mixed
Parameters
- $userId : mixed
createTemporaryFileLocallyWithContent()
private
createTemporaryFileLocallyWithContent(string $submitProofPath, string|null $fileContent) : mixed
Parameters
- $submitProofPath : string
- $fileContent : string|null
deleteFileFromWrongBucket()
private
deleteFileFromWrongBucket(string $submitProofPath) : mixed
Parameters
- $submitProofPath : string
deleteTemporaryFile()
private
deleteTemporaryFile(string $localPath) : mixed
Parameters
- $localPath : string
getFileContentFromWrongBucket()
private
getFileContentFromWrongBucket(string $submitProofPath) : string|null
Parameters
- $submitProofPath : string
Return values
string|nullgetGcsFilePathFromCorrectBucket()
private
getGcsFilePathFromCorrectBucket(string $submitProofPath) : string
Parameters
- $submitProofPath : string
Return values
stringgetRemotePath()
private
getRemotePath(string $submitProofPath, EntryReport $entryReport) : string
Parameters
- $submitProofPath : string
- $entryReport : EntryReport
Return values
stringuploadFileToCorrectBucket()
private
uploadFileToCorrectBucket(string $localPath, string $remotePath) : mixed
Parameters
- $localPath : string
- $remotePath : string