Convenience method to pass config to job data

@return array
167588
protected function generateConfigJobArgs()
    {
        $configInstance = $this->getConfigInstance();
        $args = [];
        if ($configInstance instanceof ITripodConfigSerializer) {
            $config = $configInstance->serialize();
        } else {
            $config = \Tripod\Config::getConfig();
        }
        if (isset($config['class'])) {
            $args[self::TRIPOD_CONFIG_GENERATOR] = $config;
        } else {
            $args[self::TRIPOD_CONFIG_KEY] = $config;
        }
        return $args;
    }
290223
public function getConfig(): array
    {
        $structure = [
            'locationMappings' => [],
            'defaultMappings' => [],
            'fallbackContentType' => $this->buildFallbackContentTypeStructure($this->fallbackContentType),
            'maxFileSize' => $this->maxFileSize,
        ];

        foreach ($this->locationMappings as $locationIdentifier => $locationConfiguration) {
            $structure['locationMappings'][$locationIdentifier] = [
                'contentTypeIdentifier' => $locationConfiguration['content_type_identifier'],
                'mimeTypeFilter' => $locationConfiguration['mime_type_filter'],
                'mappings' => [],
            ];

            foreach ($locationConfiguration['mappings'] as $mappingGroup) {
                $structure['locationMappings'][$locationIdentifier]['mappings'][] = $this->buildMappingGroupStructure($mappingGroup);
            }
        }

        foreach ($this->defaultMappings as $mappingGroup) {
            $structure['defaultMappings'][] = $this->buildMappingGroupStructure($mappingGroup);
        }

        return $structure;
    }
155265
public function getJsonData() : array
    {
        $config = ['enabled' => $this->isEnabled, 'actions' => []];
        foreach ($this->actions as $action) {
            $config['actions'][] = $action->getJsonData();
        }
        return $config;
    }
1301763
protected function generateConfig(): array
    {
        $config = [
            'addLabel' => $GLOBALS['TL_LANG']['MSC']['cfg_tags.add'],
            'allowCreate' => isset($this->tagsCreate) ? (bool) $this->tagsCreate : true,
        ];

        // Maximum number of items
        if (isset($this->maxItems)) {
            $config['maxItems'] = (int) $this->maxItems;
        }

        return $config;
    }
21074
private function getJobs()
    {
        if ($this->hasParameter('profile')) {
            $this->fetchJobs($this->getParameter('profile'));

            return;
        }

        $this->buildJobs([$this->getParameter('job')]);
    }
229126
protected static function getLocalConfigValues()
    {
        $root = self::projectRoot();
        $path = "{$root}/project-x.local.yml";

        if (!file_exists($path)) {
            return [];
        }

        $instance = ProjectXConfig::createFromFile(
            new \SplFileInfo($path)
        );

        return array_filter($instance->toArray());
    }
409807
public static function getPurgeDataSettings()
    {
        $settings = array();

        // load settings from ini config
        $config = PiwikConfig::getInstance();
        foreach (self::$purgeDataOptions as $configKey => $configSection) {
            $values = $config->$configSection;
            $settings[$configKey] = $values[$configKey];
        }

        if (!Controller::isDataPurgeSettingsEnabled()) {
            return $settings;
        }

        // load the settings for the data purging settings
        foreach (self::$purgeDataOptions as $configName => $configSection) {
            $value = Option::get($configName);
            if ($value !== false) {
                $settings[$configName] = $value;
            }
        }

        return $settings;
    }
462287
public function job()
    {
        $job = $this->resqueInstance->redis->get(self::WORKER_NAME . ':' . $this);
        if (!$job) {
            return [];
        } else {
            return json_decode($job, true);
        }
    }
59438
public function toArray()
    {
        $array = array();
        $data  = $this->_data;
        foreach ($data as $key => $value) {
            if ($value instanceof AnConfig) {
                $array[$key] = $value->toArray();
            } else {
                $array[$key] = $value;
            }
        }

        return $array;
    }
383244
public function all() : array
    {
        $jobs = array();

        foreach ($this->jobs as $name => $jobBag) {
            $jobs[$name] = $this->getOrMake($name);
        }

        return $jobs;
    }
51424
function listConfig(): array
    {
        $config = [
            "instanceIdAttribute" => $this->instanceIdAttribute,
            "multiformAttribute" => $this->multiformAttribute,
            "displayMode" => $this->displayMode,
            "searchable" => $this->searchable,
            "paginated" => $this->paginated,
            "reorderable" => !is_null($this->reorderHandler),
            "defaultSort" => $this->defaultSort,
            "defaultSortDir" => $this->defaultSortDir,
        ];

        $this->appendFiltersToConfig($config);

        $this->appendEntityStateToConfig($config);

        $this->appendCommandsToConfig($config);

        return $config;
    }
671747
public function getConfig(): array
    {
        if (empty($this->config)) {
            $yamlParser = new Parser();
            $files = $this->getFileNames();
            $config = [];
            foreach ($files as $file) {
                $fileConfig = $yamlParser->parseFile($file);
                $config = \array_merge($config, $fileConfig);
            }
            $this->config = $config;
        }
        return $this->config;
    }
460145
public function getConfig()
    {
        return [
            'filters' => [
                'aliases'   => [
                    'carriagereturntohtml' => CarriageReturnToHtml::class,
                    'carriageReturnToHtml' => CarriageReturnToHtml::class,
                    'CarriageReturnToHtml' => CarriageReturnToHtml::class,
                    'datetimetodateTime'   => DateTimeToDateTime::class,
                    'dateTimeToDateTime'   => DateTimeToDateTime::class,
                    'DateTimeToDateTime'   => DateTimeToDateTime::class,
                    'datetodatetime'       => DateToDateTime::class,
                    'dateToDateTime'       => DateToDateTime::class,
                    'DateToDateTime'       => DateToDateTime::class,
                    'slugify'              => Slugify::class,
                    'Slugify'              => Slugify::class,
                    'stripcarriagereturn'  => StripCarriageReturn::class,
                    'stripCarriageReturn'  => StripCarriageReturn::class,
                    'StripCarriageReturn'  => StripCarriageReturn::class,
                    'timetodatetime'       => TimeToDateTime::class,
                    'timeToDateTime'       => TimeToDateTime::class,
                    'TimeToDateTime'       => TimeToDateTime::class,
                    'filerenameupload'     => File\RenameUpload::class,
                    'fileRenameUpload'     => File\RenameUpload::class,
                    'FileRenameUpload'     => File\RenameUpload::class,
                    'wordtitlecase'        => Word\TitleCase::class,
                    'wordTitleCase'        => Word\TitleCase::class,
                    'WordTitleCase'        => Word\TitleCase::class
                ],
                'factories' => [
                    CarriageReturnToHtml::class => InvokableFactory::class,
                    DateTimeToDateTime::class   => InvokableFactory::class,
                    DateToDateTime::class       => InvokableFactory::class,
                    Slugify::class              => InvokableFactory::class,
                    StripCarriageReturn::class  => InvokableFactory::class,
                    TimeToDateTime::class       => InvokableFactory::class,
                    File\RenameUpload::class    => InvokableFactory::class,
                    Word\TitleCase::class       => InvokableFactory::class
                ]
            ]
        ];
    }
1284767
protected function formatConfig()
    {
        return array_merge([
            'identifier' => $this->config['client_id'],
            'secret' => $this->config['client_secret'],
            'callback_uri' => $this->config['redirect'],
        ], $this->config);
    }
1200865
private function _getConfigArray()
    {
        $keyId = Craft::parseEnv($this->keyId);
        $secret = Craft::parseEnv($this->secret);
        $region = Craft::parseEnv($this->region);

        return self::_buildConfigArray($keyId, $secret, $region);
    }
624663
protected function _getFindConfig()
    {
        $config = (array)$this->config('findConfig') + ['conditions' => []];
        $config['conditions'] = array_merge($config['conditions'], $this->_request()->data);

        return $config;
    }
667262
protected function getProfileConfig()
    {
        $configCallable = $this->config;
        $config = $configCallable($this->getProfileConfigKey());

        if (!is_array($config)) {
            $config = [$config];
        }

        return array_filter($config);
    }