File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
lib/internal/Magento/Framework/View/Asset Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function __construct(Filesystem $filesystem)
62
62
*/
63
63
public function lockProcess ($ lockName )
64
64
{
65
- if ($ this ->getState ()->getMode () == State::MODE_PRODUCTION ) {
65
+ if ($ this ->getState ()->getMode () === State::MODE_PRODUCTION || PHP_SAPI === ' cli ' ) {
66
66
return ;
67
67
}
68
68
@@ -78,11 +78,12 @@ public function lockProcess($lockName)
78
78
79
79
/**
80
80
* @inheritdoc
81
+ *
81
82
* @throws FileSystemException
82
83
*/
83
84
public function unlockProcess ()
84
85
{
85
- if ($ this ->getState ()->getMode () == State::MODE_PRODUCTION ) {
86
+ if ($ this ->getState ()->getMode () === State::MODE_PRODUCTION || PHP_SAPI === ' cli ' ) {
86
87
return ;
87
88
}
88
89
@@ -115,9 +116,10 @@ private function isProcessLocked()
115
116
}
116
117
117
118
/**
118
- * Get name of lock file
119
+ * Get path to lock file
119
120
*
120
121
* @param string $name
122
+ *
121
123
* @return string
122
124
*/
123
125
private function getFilePath ($ name )
@@ -126,7 +128,10 @@ private function getFilePath($name)
126
128
}
127
129
128
130
/**
131
+ * Get State object
132
+ *
129
133
* @return State
134
+ *
130
135
* @deprecated 100.1.1
131
136
*/
132
137
private function getState ()
You can’t perform that action at this time.
0 commit comments