@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | $env = include $file; |
| 5 | 5 | |
| 6 | 6 | $env['cache'] = |
| 7 | - [ |
|
| 7 | + [ |
|
| 8 | 8 | 'frontend' => [ |
| 9 | 9 | 'default' => [ |
| 10 | 10 | 'backend' => 'Cm_Cache_Backend_Redis', |
@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | ], |
| 25 | 25 | ], |
| 26 | 26 | 'page_cache' => [ |
| 27 | - 'backend' => 'Cm_Cache_Backend_Redis', |
|
| 28 | - 'backend_options' => [ |
|
| 27 | + 'backend' => 'Cm_Cache_Backend_Redis', |
|
| 28 | + 'backend_options' => [ |
|
| 29 | 29 | 'server' => '127.0.0.1', |
| 30 | 30 | 'port' => '6379', |
| 31 | 31 | 'persistent' => '', |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$file = "$argv[1]/magento2/app/etc/env.php"; |
|
| 4 | -$env = include $file; |
|
| 3 | +$file="$argv[1]/magento2/app/etc/env.php"; |
|
| 4 | +$env=include $file; |
|
| 5 | 5 | |
| 6 | -$env['cache'] = |
|
| 6 | +$env['cache']= |
|
| 7 | 7 | [ |
| 8 | 8 | 'frontend' => [ |
| 9 | 9 | 'default' => [ |
@@ -43,4 +43,4 @@ |
||
| 43 | 43 | ], |
| 44 | 44 | ]; |
| 45 | 45 | |
| 46 | -file_put_contents($file, "<?php \n \n return ".var_export($env, true).';'); |
|
| 46 | +file_put_contents($file, "<?php \n \n return ".var_export($env, TRUE).';'); |
|
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | protected function configure() |
| 20 | 20 | { |
| 21 | - $this->_projectPath = getcwd(); |
|
| 21 | + $this->_projectPath=getcwd(); |
|
| 22 | 22 | $this->setName('cache:enable'); |
| 23 | 23 | $this->setDescription('Enable cache types'); |
| 24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $output->writeln('<info>Enabling all cache types</info>'); |
| 35 | 35 | |
| 36 | - $command = $this->getCommand(new Config($output)); |
|
| 37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
| 36 | + $command=$this->getCommand(new Config($output)); |
|
| 37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
| 38 | 38 | |
| 39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
| 40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | protected function getCommand(Config $config) |
| 48 | 48 | { |
| 49 | - $type = $config->type; |
|
| 49 | + $type=$config->type; |
|
| 50 | 50 | switch ($type) { |
| 51 | 51 | case 'magento': |
| 52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:enable'; |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | protected function configure() |
| 20 | 20 | { |
| 21 | - $this->_projectPath = getcwd(); |
|
| 21 | + $this->_projectPath=getcwd(); |
|
| 22 | 22 | $this->setName('cache:enable'); |
| 23 | 23 | $this->setDescription('Enable cache types'); |
| 24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $output->writeln('<info>Enabling all cache types</info>'); |
| 35 | 35 | |
| 36 | - $command = $this->getCommand(new Config($output)); |
|
| 37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
| 36 | + $command=$this->getCommand(new Config($output)); |
|
| 37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
| 38 | 38 | |
| 39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
| 40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | protected function getCommand(Config $config) |
| 48 | 48 | { |
| 49 | - $type = $config->type; |
|
| 49 | + $type=$config->type; |
|
| 50 | 50 | switch ($type) { |
| 51 | 51 | case 'magento': |
| 52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:enable'; |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | protected function configure() |
| 20 | 20 | { |
| 21 | - $this->_projectPath = getcwd(); |
|
| 21 | + $this->_projectPath=getcwd(); |
|
| 22 | 22 | $this->setName('cache:enable'); |
| 23 | 23 | $this->setDescription('Enable cache types'); |
| 24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $output->writeln('<info>Enabling all cache types</info>'); |
| 35 | 35 | |
| 36 | - $command = $this->getCommand(new Config($output)); |
|
| 37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
| 36 | + $command=$this->getCommand(new Config($output)); |
|
| 37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
| 38 | 38 | |
| 39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
| 40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | protected function getCommand(Config $config) |
| 48 | 48 | { |
| 49 | - $type = $config->type; |
|
| 49 | + $type=$config->type; |
|
| 50 | 50 | switch ($type) { |
| 51 | 51 | case 'magento': |
| 52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:enable'; |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | protected function configure() |
| 20 | 20 | { |
| 21 | - $this->_projectPath = getcwd(); |
|
| 21 | + $this->_projectPath=getcwd(); |
|
| 22 | 22 | $this->setName('cache:enable'); |
| 23 | 23 | $this->setDescription('Enable cache types'); |
| 24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $output->writeln('<info>Enabling all cache types</info>'); |
| 35 | 35 | |
| 36 | - $command = $this->getCommand(new Config($output)); |
|
| 37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
| 36 | + $command=$this->getCommand(new Config($output)); |
|
| 37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
| 38 | 38 | |
| 39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
| 40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | protected function getCommand(Config $config) |
| 48 | 48 | { |
| 49 | - $type = $config->type; |
|
| 49 | + $type=$config->type; |
|
| 50 | 50 | switch ($type) { |
| 51 | 51 | case 'magento': |
| 52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:enable'; |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | protected function configure() |
| 20 | 20 | { |
| 21 | - $this->_projectPath = getcwd(); |
|
| 21 | + $this->_projectPath=getcwd(); |
|
| 22 | 22 | $this->setName('cache:enable'); |
| 23 | 23 | $this->setDescription('Enable cache types'); |
| 24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $output->writeln('<info>Enabling all cache types</info>'); |
| 35 | 35 | |
| 36 | - $command = $this->getCommand(new Config($output)); |
|
| 37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
| 36 | + $command=$this->getCommand(new Config($output)); |
|
| 37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
| 38 | 38 | |
| 39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
| 40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | protected function getCommand(Config $config) |
| 48 | 48 | { |
| 49 | - $type = $config->type; |
|
| 49 | + $type=$config->type; |
|
| 50 | 50 | switch ($type) { |
| 51 | 51 | case 'magento': |
| 52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:enable'; |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | protected function configure() |
| 20 | 20 | { |
| 21 | - $this->_projectPath = getcwd(); |
|
| 21 | + $this->_projectPath=getcwd(); |
|
| 22 | 22 | $this->setName('cache:enable'); |
| 23 | 23 | $this->setDescription('Enable cache types'); |
| 24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $output->writeln('<info>Enabling all cache types</info>'); |
| 35 | 35 | |
| 36 | - $command = $this->getCommand(new Config($output)); |
|
| 37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
| 36 | + $command=$this->getCommand(new Config($output)); |
|
| 37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
| 38 | 38 | |
| 39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
| 40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | protected function getCommand(Config $config) |
| 48 | 48 | { |
| 49 | - $type = $config->type; |
|
| 49 | + $type=$config->type; |
|
| 50 | 50 | switch ($type) { |
| 51 | 51 | case 'magento': |
| 52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:enable'; |