src/Listener/MailSender.php
public function onJobCreated(JobEvent $e)
    {
        $job = $e->getJobEntity();
        $this->sendMail(
            $job,
            'mail/job-created',
            /*@translate*/ 'A new job opening was created',
            /*adminMail*/ true
        );
        $this->sendMail(
            $job,
            'mail/job-pending',
            /*@translate*/ 'Your Job have been wrapped up for approval'
        );
    }
public function onJobCreated(JobEvent $e)
    {
        $job = $e->getJobEntity();
        $this->sendMail(
            $job,
            'mail/job-created',
            /*@translate*/ 'A new job opening was created',
            /*adminMail*/ true
        );
        $this->sendMail(
            $job,
            'mail/job-pending',
            /*@translate*/ 'Your Job have been wrapped up for approval'
        );
    }
public function onJobCreated ( JobEvent $ e ) { $ job = $ e -> getJobEntity ( ) ; $ this -> sendMail ( $ job , 'mail/job-created' , /*@translate*/ 'A new job opening was created' , /*adminMail*/ true ) ; $ this -> sendMail ( $ job , 'mail/job-pending' , /*@translate*/ 'Your Job have been wrapped up for approval' ) ; }
Callback for the job created event.

@param JobEvent $e
Callback for the job created event .