1 | <?php |
||
29 | class AbstractUrlRewriteCommand extends Command |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * @var \Symfony\Component\Console\Helper\ProgressBar |
||
34 | */ |
||
35 | protected $progressBar; |
||
36 | |||
37 | /** |
||
38 | * @var \Magento\Framework\ObjectManagerInterface |
||
39 | */ |
||
40 | protected $objectManager; |
||
41 | /** |
||
42 | * @var \Symfony\Component\Console\Output\OutputInterface |
||
43 | */ |
||
44 | protected $output; |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | protected function execute(InputInterface $input, OutputInterface $output) |
||
54 | |||
55 | /** |
||
56 | * Setup progress bar |
||
57 | */ |
||
58 | private function setupProgress() |
||
65 | |||
66 | /** |
||
67 | * Replace data with new product urls |
||
68 | * |
||
69 | * @param $urls |
||
70 | */ |
||
71 | protected function replaceUrls(array $urls) |
||
81 | |||
82 | /** |
||
83 | * Get Url UrlPersist |
||
84 | * @return \Magento\UrlRewrite\Model\UrlPersistInterface |
||
85 | */ |
||
86 | protected function getUrlPersist() |
||
91 | |||
92 | /** |
||
93 | * Gets initialized object manager |
||
94 | * |
||
95 | * @return \Magento\Framework\ObjectManagerInterface |
||
96 | */ |
||
97 | protected function getObjectManager() |
||
110 | |||
111 | /** |
||
112 | * @return \Magento\Framework\Model\ResourceModel\Iterator |
||
113 | */ |
||
114 | public function getIterator() |
||
118 | |||
119 | |||
120 | /** |
||
121 | * @return \Magento\Store\Model\StoreManagerInterface |
||
122 | */ |
||
123 | public function getStoreManager() |
||
127 | |||
128 | } |