File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
app/code/Magento/MediaContentSynchronization/Console/Command Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \MediaContentSynchronization \Console \Command ;
9
9
10
- use Magento \Framework \App \Area ;
11
- use Magento \Framework \App \State ;
12
10
use Magento \Framework \Console \Cli ;
13
11
use Magento \MediaContentSynchronizationApi \Api \SynchronizeInterface ;
14
12
use Symfony \Component \Console \Command \Command ;
@@ -25,21 +23,13 @@ class Synchronize extends Command
25
23
*/
26
24
private $ synchronizeContent ;
27
25
28
- /**
29
- * @var State $state
30
- */
31
- private $ state ;
32
-
33
26
/**
34
27
* @param SynchronizeInterface $synchronizeContent
35
- * @param State $state
36
28
*/
37
29
public function __construct (
38
- SynchronizeInterface $ synchronizeContent ,
39
- State $ state
30
+ SynchronizeInterface $ synchronizeContent
40
31
) {
41
32
$ this ->synchronizeContent = $ synchronizeContent ;
42
- $ this ->state = $ state ;
43
33
parent ::__construct ();
44
34
}
45
35
@@ -58,12 +48,7 @@ protected function configure()
58
48
protected function execute (InputInterface $ input , OutputInterface $ output )
59
49
{
60
50
$ output ->writeln ('Synchronizing content with assets... ' );
61
- $ this ->state ->emulateAreaCode (
62
- Area::AREA_ADMINHTML ,
63
- function () {
64
- $ this ->synchronizeContent ->execute ();
65
- }
66
- );
51
+ $ this ->synchronizeContent ->execute ();
67
52
$ output ->writeln ('Completed content synchronization. ' );
68
53
return Cli::RETURN_SUCCESS ;
69
54
}
You can’t perform that action at this time.
0 commit comments