1 | <?php namespace Magestead\Command\Index; |
||
14 | class ReindexCommand extends Command |
||
15 | { |
||
16 | protected $_config; |
||
17 | protected $_projectPath; |
||
18 | |||
19 | protected function configure() |
||
26 | |||
27 | /** |
||
28 | * @param InputInterface $input |
||
29 | * @param OutputInterface $output |
||
30 | * @return ProcessCommand |
||
31 | */ |
||
32 | protected function execute(InputInterface $input, OutputInterface $output) |
||
33 | { |
||
34 | $output->writeln('<info>Reindexing data</info>'); |
||
35 | $index = $input->getArgument('index'); |
||
36 | |||
37 | $command = $this->getCommand(new Config($output), $index); |
||
38 | $pCommand = "vagrant ssh -c '". $command ."'"; |
||
39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param Config $config |
||
44 | * @param $index |
||
45 | * @return bool|string |
||
46 | */ |
||
47 | protected function getCommand(Config $config, $index) |
||
62 | } |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.