Skip to content

Commit ebf25c5

Browse files
author
Egor Shitikov
committed
MAGETWO-34014: Create fixture or script for changing Magento FPC ttl
1 parent f1dd33f commit ebf25c5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

dev/tools/performance-toolkit/fixtures/configs_apply.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ class ConfigsApplyFixture extends \Magento\ToolkitFramework\Fixture
1717
/**
1818
* {@inheritdoc}
1919
*/
20-
public function execute()
20+
public function execute()
2121
{
22-
$configs = \Magento\ToolkitFramework\Config::getInstance()->getValue('configs', []);
22+
$configs = \Magento\ToolkitFramework\Config::getInstance()->getValue('configs', array());
2323
$this->application->resetObjectManager();
24-
24+
/**
25+
* @var \Magento\Framework\App\Config\Value $configData
26+
*/
2527
foreach ($configs['config'] as $config) {
26-
/**
27-
* @var \Magento\Framework\App\Config\Value $configData
28-
*/
2928
$configData = $this->application->getObjectManager()->create('Magento\Framework\App\Config\Value');
30-
$configData->setPatho($cnfig['path'])
29+
$configData->setPath($config['path'])
3130
->setScope($config['scope'])
3231
->setScopeId($config['scopeId'])
3332
->setValue($config['value'])

0 commit comments

Comments
 (0)