public function dispatchAfterAuthenticate()
    {
        // Grab the jobs config
        $jobsConfig = Config::get('shopify-app.after_authenticate_job');

        /**
         * Fires the job.
         *
         * @param array $config The job's configuration
         *
         * @return bool
         */
        $fireJob = function ($config) {
            $job = $config['job'];
            if (isset($config['inline']) && $config['inline'] === true) {
                // Run this job immediately
                $job::dispatchNow($this->shop);
            } else {
                // Run later
                $job::dispatch($this->shop)->onQueue(Config::get('shopify-app.job_queues.after_authenticate'));
            }

            return true;
        };

        // We have multi-jobs
        if (isset($jobsConfig[0])) {
            foreach ($jobsConfig as $jobConfig) {
                // We have a job, pass the shop object to the contructor
                $fireJob($jobConfig);
            }

            return true;
        }

        // We have a single job
        if (isset($jobsConfig['job'])) {
            return $fireJob($jobsConfig);
        }

        return false;
    }
public function dispatchAfterAuthenticate()
    {
        
        $jobsConfig = Config::get('shopify-app.after_authenticate_job');

        
        $fireJob = function ($config) {
            $job = $config['job'];
            if (isset($config['inline']) && $config['inline'] === true) {
                
                $job::dispatchNow($this->shop);
            } else {
                
                $job::dispatch($this->shop)->onQueue(Config::get('shopify-app.job_queues.after_authenticate'));
            }

            return true;
        };

        
        if (isset($jobsConfig[0])) {
            foreach ($jobsConfig as $jobConfig) {
                
                $fireJob($jobConfig);
            }

            return true;
        }

        
        if (isset($jobsConfig['job'])) {
            return $fireJob($jobsConfig);
        }

        return false;
    }
public function dispatchAfterAuthenticate ( ) { // Grab the jobs config $ jobsConfig = Config :: get ( 'shopify-app.after_authenticate_job' ) ; /**
         * Fires the job.
         *
         * @param array $config The job's configuration
         *
         * @return bool
         */ $ fireJob = function ( $ config ) { $ job = $ config [ 'job' ] ; if ( isset ( $ config [ 'inline' ] ) && $ config [ 'inline' ] === true ) { // Run this job immediately $ job :: dispatchNow ( $ this -> shop ) ; } else { // Run later $ job :: dispatch ( $ this -> shop ) -> onQueue ( Config :: get ( 'shopify-app.job_queues.after_authenticate' ) ) ; } return true ; } ; // We have multi-jobs if ( isset ( $ jobsConfig [ 0 ] ) ) { foreach ( $ jobsConfig as $ jobConfig ) { // We have a job, pass the shop object to the contructor $ fireJob ( $ jobConfig ) ; } return true ; } // We have a single job if ( isset ( $ jobsConfig [ 'job' ] ) ) { return $ fireJob ( $ jobsConfig ) ; } return false ; }
Dispatches the after authenticate job, if any.

@return void
Dispatches the after authenticate job if any .