@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -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'; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -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'; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -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'; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -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'; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -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'; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -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'; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -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'; |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * @param array $options |
| 11 | 11 | * @param array $config |
| 12 | - * @param $projectPath |
|
| 13 | - * @param $output |
|
| 12 | + * @param string $projectPath |
|
| 13 | + * @param \Symfony\Component\Console\Output\OutputInterface $output |
|
| 14 | 14 | * @return Magento2Project|MagentoProject |
| 15 | 15 | */ |
| 16 | 16 | public static function create(array $options, array $config, $projectPath, $output) |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | protected function configure() |
| 17 | 17 | { |
| 18 | - $this->_projectPath = getcwd(); |
|
| 18 | + $this->_projectPath=getcwd(); |
|
| 19 | 19 | |
| 20 | 20 | $this->setName("vm:up"); |
| 21 | 21 | $this->setDescription("Spin up your development machine"); |