Skip to content

Commit f3bf55f

Browse files
author
Anton Evers
committed
Get rid of protected functions in favour of extensibility
1 parent 5f6d181 commit f3bf55f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/Catalog/Console/Command/ImagesResizeCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function __construct(
6969
/**
7070
* {@inheritdoc}
7171
*/
72-
protected function configure()
72+
public function configure()
7373
{
7474
$this->setName('catalog:images:resize')
7575
->setDescription('Creates resized product images')
@@ -79,7 +79,7 @@ protected function configure()
7979
/**
8080
* {@inheritdoc}
8181
*/
82-
protected function execute(
82+
public function execute(
8383
\Symfony\Component\Console\Input\InputInterface $input,
8484
\Symfony\Component\Console\Output\OutputInterface $output
8585
) {
@@ -139,7 +139,7 @@ protected function execute(
139139
* @param array $options
140140
* @return int
141141
*/
142-
protected function getProcessesAmount(array $options)
142+
public function getProcessesAmount(array $options)
143143
{
144144
return isset($options[Options::JOBS_AMOUNT])
145145
? (int)$options[Options::JOBS_AMOUNT]
@@ -150,7 +150,7 @@ protected function getProcessesAmount(array $options)
150150
* @param array $options
151151
* @return int
152152
*/
153-
protected function getLimit(array $options)
153+
public function getLimit(array $options)
154154
{
155155
return isset($options[Options::PRODUCT_LIMIT])
156156
? (int)$options[Options::PRODUCT_LIMIT]
@@ -161,7 +161,7 @@ protected function getLimit(array $options)
161161
* @param array $options
162162
* @return int
163163
*/
164-
protected function getOffset(array $options)
164+
public function getOffset(array $options)
165165
{
166166
return isset($options[Options::PRODUCT_OFFSET])
167167
? (int)$options[Options::PRODUCT_OFFSET]

0 commit comments

Comments
 (0)