-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lexicons for new system setting, update build version, update tra…
…nsport package
- Loading branch information
Showing
7 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
/** | ||
* | ||
* THIS RESOLVER IS AUTOMATICALLY GENERATED, NO CHANGES WILL APPLY | ||
* | ||
* @package seosuite | ||
* @subpackage build | ||
* | ||
* @var \xPDO\Transport\xPDOTransport $transport | ||
* @var array $object | ||
* @var array $options | ||
*/ | ||
|
||
use Fred\Model\FredThemedTemplate; | ||
use Fred\Model\FredBlueprint; | ||
use Fred\Model\FredTheme; | ||
use xPDO\Transport\xPDOTransport; | ||
use MODX\Revolution\modSystemSetting; | ||
use xPDO\xPDO; | ||
use xPDO\Cache\xPDOCacheManager; | ||
|
||
if ($options[xPDOTransport::PACKAGE_ACTION] === xPDOTransport::ACTION_UNINSTALL) { | ||
return true; | ||
} | ||
|
||
$modx =& $transport->xpdo; | ||
|
||
$modx->getCacheManager(); | ||
$modx->cacheManager->refresh(); | ||
|
||
$config = $modx->cacheManager->get('config', [ | ||
xPDO::OPT_CACHE_KEY => $modx->getOption('cache_system_settings_key', null, 'system_settings'), | ||
xPDO::OPT_CACHE_HANDLER => $modx->getOption('cache_system_settings_handler', null, $modx->getOption(xPDO::OPT_CACHE_HANDLER)), | ||
xPDO::OPT_CACHE_FORMAT => (integer) $modx->getOption('cache_system_settings_format', null, $modx->getOption(xPDO::OPT_CACHE_FORMAT, null, xPDOCacheManager::CACHE_PHP)), | ||
]); | ||
|
||
if (empty($config)) { | ||
$config = $modx->cacheManager->generateConfig(); | ||
} | ||
|
||
if (empty($config)) { | ||
$config = []; | ||
if (!$settings = $modx->getCollection(modSystemSetting::class)) { | ||
return; | ||
} | ||
/** @var modSystemSetting $setting */ | ||
foreach ($settings as $setting) { | ||
$config[$setting->get('key')]= $setting->get('value'); | ||
} | ||
} | ||
|
||
$modx->config = array_merge($modx->config, $config); | ||
$modx->_systemConfig = $modx->config; |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters