Skip to content

Commit 3b220f2

Browse files
committed
MAGETWO-52000: impossible to see what is wrong with cron - unhelpful error message
- Code update to resolve QA issue
1 parent 760cb23 commit 3b220f2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

setup/src/Magento/Setup/Model/Cron/JobStaticRegenerate.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
*/
1111
class JobStaticRegenerate extends AbstractJob
1212
{
13-
/**
14-
* @var \Magento\Setup\Model\ObjectManagerProvider
15-
*/
16-
protected $objectManagerProvider;
17-
1813
/**
1914
* @var \Magento\Framework\App\Cache
2015
*/
@@ -134,7 +129,7 @@ public function getOutputObject()
134129
*/
135130
public function getFilesystem()
136131
{
137-
return $this->objectManagerProvider->get()->create('Magento\Deploy\Model\Filesystem');
132+
return $this->objectManager->create('Magento\Deploy\Model\Filesystem');
138133
}
139134

140135
/**
@@ -144,7 +139,7 @@ public function getFilesystem()
144139
*/
145140
public function getModeObject()
146141
{
147-
return $this->objectManagerProvider->get()->create(
142+
return $this->objectManager->create(
148143
'Magento\Deploy\Model\Mode',
149144
[
150145
'input' => new \Symfony\Component\Console\Input\ArrayInput([]),

0 commit comments

Comments
 (0)