Skip to content
Corex

ApplicationService

Corex\Careers\Application\ApplicationService · class · Add-ons layer

Orchestrates an application: validate the required fields, validate the CV via the upload validator (spec 012), store it, and notify HR + the applicant. Every rejection short-circuits before any side effect (FR-004). Captcha/honeypot are the endpoint’s job; this validates fields + the file.

__construct(ApplicationStore $store, UploadValidator $uploads, AttachmentStorage $attachments, Mailer $mailer, ConfigInterface $config)

Section titled “__construct(ApplicationStore $store, UploadValidator $uploads, AttachmentStorage $attachments, Mailer $mailer, ConfigInterface $config)”

apply(int $jobId, array $data, array $cvFile): ApplicationResult

Section titled “apply(int $jobId, array $data, array $cvFile): ApplicationResult”