Get the config values related to steak sources.

@return array
777319
protected function setupSources()
    {
        /** @var Repository $config */
        $config = $this->container['config'];
        $cwd = getcwd();
        $source = [];

        $this->output->writeln("Working directory is <path>{$cwd}</path>");

        $this->title('Sources');

        if ($this->isGitRepo('.')) {

            $this->output->writeln("It looks your project already has a git repository.\n");

            if ($this->confirm('Would you like to store your steak sources in a <b>separate</b> repo/branch?', false)) {

                $source['git.directory'] = $this->ask(
                    "Where should we check out the site sources <b>repository</b>?",
                    $config->get('source.directory', 'steak')
                );
                // @todo if the sources repo already exists, try reading values from there instead of config?
                $source['git.url'] = $this->ask(
                    "Enter the source repository URL:",
                    $config->get('source.git.url', $this->getPushUrl('.'))
                );
                $source['git.branch'] = $this->ask(
                    "Specify the branch to use:",
                    $config->get('source.git.branch', 'gh-pages-src')
                );

            } else { // not using a separate source vcs

                $this->output->writeln([
                    "  Okay, no problem, just commit your steak sources as part of your standard workflow.",
                    "  The <comment>steak pull</comment> command will have no effect.",
                    ""
                ]);

                $source['directory'] = $this->ask(
                    "Where are the <b>source files</b> kept?",
                    $config->get('source.directory', 'source')
                );
            }

        } else { // not running inside a git repo

            $this->output->writeln("working directory not under git", OutputInterface::VERBOSITY_VERBOSE);

            if ($this->confirm('Would you like to store your steak sources in a git repo?')) {

                $source['directory'] = $this->ask(
                    "Where should we check out the site sources <b>repository</b>?",
                    $config->get('source.directory', 'steak')
                );
                $source['git.url'] = $this->ask(
                    "Enter the source repository URL:",
                    $config->get('source.git.url'),
                    $this->valueRequiredValidator()
                );
                $source['git.branch'] = $this->ask(
                    "Specify the branch to use:",
                    $config->get('source.git.branch', 'master')
                );

            } else {

                $this->output->writeln("  Okay, no git.");

                $source['directory'] = $this->ask(
                    "Where to put the steak <b>source files</b>?",
                    $config->get('source.directory', 'sources')
                );

            }
        }

        return $source;
    }
855503
public function getDependencyConfig(): array
    {
        return [
            'aliases' => [
                'TableManager' => Db\TableManager::class
            ],
            'factories' => [
                GulpRev::class                => Factory\GulpRevFactory::class,
                TransportInterface::class     => Mail\Transport\TransportServiceFactory::class,
                Db\TableManager::class        => Db\TableManagerFactory::class,
                \Rollbar\RollbarLogger::class => Rollbar\LoggerFactory::class,
            ]
        ];
    }
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;
    }
1188637
public function getConfig()
    {
		return array(
			'baseUrl' => Yii::app()->getBaseUrl(true),
			'base_url' => Yii::app()->getBaseUrl(true) . '/hybridauth/callback', // URL for Hybrid_Auth callback
            'debug_mode' => YII_DEBUG,
            'debug_file' => Yii::getPathOfAlias('application.runtime.hybridauth').'.log',
			'providers' => CMap::mergeArray($this->providers, Cii::getHybridAuthProviders()),
		);
	}
1230415
public function getConfigOverrides()
    {
        if (! empty(ee()->config->config[$this->config_key]) && is_array(ee()->config->config[$this->config_key])) {
            return ee()->config->config[$this->config_key];
        }
        
        return array();
    }
1292327
public function getViewHelperConfig()
    {
        return array(
            'invokables'            => array(
                'layout'                    => 'Zork\View\Helper\Layout',
                'messenger'                 => 'Zork\View\Helper\Messenger',
                'htmlTag'                   => 'Zork\View\Helper\HtmlTag',
                'headTitle'                 => 'Zork\View\Helper\HeadTitle',
                'openGraph'                 => 'Zork\View\Helper\OpenGraph',
                'escapeCss'                 => 'Zork\View\Helper\EscapeCss',
                'escapeHtml'                => 'Zork\View\Helper\EscapeHtml',
                'escapeHtmlAttr'            => 'Zork\View\Helper\EscapeHtmlAttr',
                'escapeJs'                  => 'Zork\View\Helper\EscapeJs',
                'escapeUrl'                 => 'Zork\View\Helper\EscapeUrl',
                'date'                      => 'Zork\I18n\View\Helper\Date',
                'dateTime'                  => 'Zork\I18n\View\Helper\DateTime',
                'relativeTime'              => 'Zork\I18n\View\Helper\RelativeTime',
                'form'                      => 'Zork\Form\View\Helper\Form',
                'formRadio'                 => 'Zork\Form\View\Helper\FormRadio',
                'formSelect'                => 'Zork\Form\View\Helper\FormSelect',
                'formCheckbox'              => 'Zork\Form\View\Helper\FormCheckbox',
                'formPassword'              => 'Zork\Form\View\Helper\FormPassword',
                'formRadioGroup'            => 'Zork\Form\View\Helper\FormRadioGroup',
                'formElement'               => 'Zork\Form\View\Helper\FormElement',
                'formFieldset'              => 'Zork\Form\View\Helper\FormFieldset',
                'formCollection'            => 'Zork\Form\View\Helper\FormCollection',
                'formMultiCheckbox'         => 'Zork\Form\View\Helper\FormMultiCheckbox',
                'formMultiCheckboxGroup'    => 'Zork\Form\View\Helper\FormMultiCheckboxGroup',
                'captcha/regeneratable'     => 'Zork\Form\View\Helper\Captcha\Regeneratable',
                'markdown'                  => 'Grid\Core\View\Helper\Markdown',
            ),
            'aliases'               => array(
                'Zend\Session\SessionManager'   => 'sessionManager',
                'Zend\Session\ManagerInterface' => 'sessionManager',
            ),
            'factories'             => array(
                'sessionManager'    => array( $this, 'getSessionManager' ),
                'config'            => array( $this, 'getConfigViewHelper' ),
                'domain'            => array( $this, 'getDomainViewHelper' ),
                'locale'            => array( $this, 'getLocaleViewHelper' ),
                'adminLocale'       => array( $this, 'getAdminLocaleViewHelper' ),
                'appService'        => array( $this, 'getAppServiceViewHelper' ),
                'authentication'    => array( $this, 'getAuthenticationViewHelper' ),
                'viewWidget'        => array( $this, 'getViewWidgetViewHelper' ),
                'isModuleLoaded'    => array( $this, 'getIsModuleLoadedViewHelper' ),
                'siteInfo'          => array( $this, 'getSiteInfoViewHelper' ),
                'uploads'           => array( $this, 'getUploadsViewHelper' ),
                'rowSet'            => array( $this, 'getRowSetViewHelper' ),
                'beforeContentWidget' => array( $this, 'getBeforeContentWidgetViewHelper' ),
            ),
        );
    }
369685
public static function get_config_ids() {
		$configs = [];
		foreach ( self::$instances as $instance ) {
			$configs[] = $instance->id;
		}
		return array_unique( $configs );
	}
614101
public function getConfig()
    {
        return [
            'service_manager'    => [
                'aliases'   => [
                    'ModuleRouteListener' => ModuleRouteListener::class
                ],
                'factories' => [
                    ModuleRouteListener::class                   => InvokableFactory::class,
                    Listener\ApplicationBootstrapListener::class => InvokableFactory::class,
                    Listener\ErrorLoggerListener::class          => InvokableFactory::class,
                    Listener\RouteTrailingSlashListener::class   => InvokableFactory::class,
                    Listener\SetupRouterBaseUrl::class           => InvokableFactory::class
                ]
            ],
            'controller_plugins' => [
                'aliases'   => [
                    'config'    => Controller\Plugin\Config::class,
                    'Config'    => Controller\Plugin\Config::class,
                    'flashdata' => Controller\Plugin\FlashData::class,
                    'flashData' => Controller\Plugin\FlashData::class,
                    'FlashData' => Controller\Plugin\FlashData::class,
                    'htmlclass' => Controller\Plugin\HtmlClass::class,
                    'htmlClass' => Controller\Plugin\HtmlClass::class,
                    'HtmlClass' => Controller\Plugin\HtmlClass::class,
                    'log'       => Controller\Plugin\Log::class,
                    'Log'       => Controller\Plugin\Log::class,
                    'redirect'  => Controller\Plugin\Redirect::class,
                    'Redirect'  => Controller\Plugin\Redirect::class,
                    'headtitle' => Controller\Plugin\Title::class,
                    'headTitle' => Controller\Plugin\Title::class,
                    'HeadTitle' => Controller\Plugin\Title::class,
                    'title'     => Controller\Plugin\Title::class,
                    'Title'     => Controller\Plugin\Title::class,
                    'url'       => Controller\Plugin\Url::class,
                    'Url'       => Controller\Plugin\Url::class
                ],
                'factories' => [
                    Controller\Plugin\Config::class    => function(ContainerInterface $container) {
                        return new  Controller\Plugin\Config($container->get('Config'));
                    },
                    Controller\Plugin\FlashData::class => InvokableFactory::class,
                    Controller\Plugin\HtmlClass::class => InvokableFactory::class,
                    Controller\Plugin\Log::class       => InvokableFactory::class,
                    Controller\Plugin\Redirect::class  => InvokableFactory::class,
                    Controller\Plugin\Title::class     => InvokableFactory::class,
                    Controller\Plugin\Url::class       => InvokableFactory::class
                ]
            ],
            'listeners'          => [
                ModuleRouteListener::class                 => ModuleRouteListener::class,
                Listener\ErrorLoggerListener::class        => Listener\ErrorLoggerListener::class,
                Listener\RouteTrailingSlashListener::class => Listener\RouteTrailingSlashListener::class,
                Listener\SetupRouterBaseUrl::class         => Listener\RouteTrailingSlashListener::class
            ]
        ];
    }
988409
public function getDependencyConfig(): array
    {
        return [
            'aliases' => [
                SessionManager::class => ManagerInterface::class,
            ],
            'factories' => [
                ConfigInterface::class => SessionConfigFactory::class,
                ManagerInterface::class => SessionManagerFactory::class,
                StorageInterface::class => StorageFactory::class,

                SessionOptions::class => SessionOptionsFactory::class,
                SessionMiddleware::class => SessionMiddlewareFactory::class,
            ],
            'abstract_factories' => [
                ContainerAbstractServiceFactory::class,
            ]
        ];
    }
1182827
public function getConfig() : array
    {
        $redis = $this->getDI()->getRedis();

        //get if from redis first
        if (!empty($redisConfig = $redis->hGetAll($this->getNotificationKey()))) {
            return $redisConfig;
        }

        $config = [];
        $userConfiguration = $this->getConfigs(['hydration' => \Phalcon\Mvc\Model\Resultset::HYDRATE_ARRAYS]);

        foreach ($userConfiguration as $value) {
            $config[$value['name']] = $value['value'];
        }

        return $config;
    }
644887
protected function getConfigs()
    {
    	if (!$configs = $this->container->getParameter($this->getRequest()->get('config_identifier', 'none'))){
            throw new \InvalidArgumentException('Configs does no exist!');
    	}
    	
    	return $configs;
    }
309522
public function getDefaultValues()
    {
        preg_match('/([0-9.]+)([A-Z]{3})/', $this->config['price'], $matches);

        $this->defaults['price'] = array(
            'currency' => (!empty($this->defaults['price']['currency']) ? $this->defaults['price']['currency'] : $matches[2]),
            'amount' => (!empty($this->defaults['price']['amount']) ? $this->defaults['price']['amount'] : $matches[1]),
            'vat' => (!empty($this->defaults['price']['vat']) ? $this->defaults['price']['vat'] : null),
        );

        return $this->defaults;
    }
1250991
protected function makeConfig()
    {
        $config = [
            "<?php",
            "return [",
            "    'environment' => \"production\",",
            "    'db' => [",
            "        'production' => ["
        ];

        if ($_SESSION['db']['driver'] == "pdo_pgsql" || $_SESSION['db']['driver'] == "pdo_mysql") {
            $config[] = "            'driver' => \"{$_SESSION['db']['driver']}\",";
            $config[] = "            'host' => \"{$_SESSION['db']['host']}\",";
            $config[] = "            'user' => \"{$_SESSION['db']['user']}\",";
            $config[] = "            'password' => \"{$_SESSION['db']['password']}\",";
            $config[] = "            'dbname' => \"{$_SESSION['db']['dbname']}\",";
            $config[] = "            'prefix' => ''";
        } elseif ($_SESSION['db']['driver'] == "pdo_sqlite") {
            $config[] = "            'path' => \"{$_SESSION['db']['path']}\"";
        }

        $config[] = "        ]";
        $config[] = "    ]";
        $config[] = "];";

        return htmlentities(implode(PHP_EOL, $config));
    }
132549
public function getConfig() {
        return [
            'payment' => [
                self::CODE => [
                    'isActive'                  => $this->config->isActive(),
                    'debug_mode'                => $this->config->isDebugMode(),
                    'public_key'                => $this->config->getPublicKey(),
                    'hosted_url'                => $this->config->getHostedUrl(),
                    'embedded_url'              => $this->config->getEmbeddedUrl(),
                    'countrySpecificCardTypes'  => $this->config->getCountrySpecificCardTypeConfig(),
                    'availableCardTypes'        => $this->config->getAvailableCardTypes(),
                    'useCvv'                    => $this->config->isCvvEnabled(),
                    'ccTypesMapper'             => $this->config->getCcTypesMapper(),
                    'ccVaultCode'               => self::CC_VAULT_CODE,
                    Config::CODE_3DSECURE       => [
                        'enabled' => $this->config->isVerify3DSecure(),
                    ],
                    'attemptN3D' => $this->config->isAttemptN3D(),
                    'integration'               => [
                        'type'          => $this->config->getIntegration(),
                        'isHosted'      => $this->config->isHostedIntegration(),
                    ],
                    'priceAdapter' => ChargeAmountAdapter::getConfigArray(),
                    'design_settings' => $this->config->getDesignSettings(),
                    'accepted_currencies' => $this->config->getAcceptedCurrencies(),
                    'payment_mode' => $this->config->getPaymentMode(),
                    'quote_value' => $this->getQuoteValue(),
                    'quote_currency' => $this->getQuoteCurrency(),
                    'embedded_theme' => $this->config->getEmbeddedTheme(),
                    'embedded_css' => $this->config->getEmbeddedCss(),
                    'css_file' => $this->config->getCssFile(),
                    'custom_css' => $this->config->getCustomCss(),
                    'vault_title' => $this->config->getVaultTitle(),
                    'order_creation' => $this->config->getOrderCreation(),
                    'card_autosave' => $this->config->isCardAutosave(),
                    'integration_language' => $this->config->getIntegrationLanguage()
                ],

                self::CODE_APPLE_PAY => [
                    'isActive' => $this->config->isActiveApplePay(),
                    'debugMode' => $this->config->getApplePayDebugMode(),
                    'processingCertificate' => $this->config->getApplePayProcessingCertificate(),
                    'processingCertificatePassword' => $this->config->getApplePayProcessingCertificatePassword(),
                    'merchantIdCertificate' => $this->config->getApplePayMerchantIdCertificate(),
                    'merchantId' => $this->config->getApplePayMerchantId(),
                    'buttonStyle' => $this->config->getApplePayButtonStyle(),
                    'storeName' => $this->config->getStoreName(),
                    'title' => $this->config->getApplePayTitle(),
                    'supportedNetworks' => $this->config->getApplePaySupportedNetworks(),
                    'merchantCapabilities' => $this->config->getApplePayMerchantCapabilities(),
                    'supportedCountries' => $this->config->getApplePaySupportedCountries()
                ],

                self::CODE_GOOGLE_PAY => [
                    'isActive' => $this->config->isActiveGooglePay(),
                    'debugMode' => $this->config->getGooglePayDebugMode(),
                    'title' => $this->config->getGooglePayTitle(),
                    'allowedNetworks' => $this->config->getGooglePayAllowedNetworks(),
                    'gatewayName' => $this->config->getGooglePayGatewayName(),
                    'merchantId' => $this->config->getGooglePayMerchantId(),
                    'environment' => $this->config->getGooglePayEnvironment(),
                    'buttonStyle' => $this->config->getGooglePayButtonStyle()
                ],
            ],
        ];
    }
1231827
public function getConfigurations() {
		if ($this->crops_internal === null) {
			/** @var BaseActiveRecord $model */
			$model = $this->owner;

			if (!empty($this->crops)) {
				$this->crops_internal = $this->crops;
			} else {
				$o = [];
				foreach (['cropped_field', 'crop_field', 'crop_width', 'ratio'] as $f) {
					if ($this->$f) {
						$o[$f] = $this->$f;
					}
				}
				$this->crops_internal = [$o];
			}

			foreach ($this->crops_internal as &$crop) {
				if (empty($crop['cropped_field'])) {
					$crop['value'] = false;
					$crop['image'] = $model->getOldAttribute($this->attribute);
				} else if (empty($crop['crop_field'])) {
					$crop['value'] = false;
					$crop['image'] = $model->getAttribute($crop['cropped_field']);
				} else {
					$crop['value'] = $model->getAttribute($crop['crop_field']);
					$crop['image'] = $model->getOldAttribute($this->attribute);
				}
			}
		}
		return $this->crops_internal;
	}
959359
protected function getConfigFormat()
    {
        $conf = $this->username;
        if (!empty($this->server)) {
            $conf .= ';'.$this->server;
        }

        $conf .= ' '.$this->password;

        if (!empty($this->alias)) {
            $conf .= ' '.$this->alias;
        }

        return $conf;
    }
431395
public function readConfigs() 
	{
        $paths = array('~/bookability.ini', '/etc/bookability.ini');
        foreach($paths as $path) 
		{
            if (file_exists($path)) 
			{
                $config = parse_ini_file($path);
                if ($config) 
				{
                    return $config;
                }
            }
        }
        return array();
    }