File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,18 @@ public function get($key = null, $defaultValue = null)
86
86
return $ result ?? $ defaultValue ;
87
87
}
88
88
89
+ /**
90
+ * Checks if data available
91
+ *
92
+ * @return bool
93
+ * @throws FileSystemException
94
+ * @throws RuntimeException
95
+ */
96
+ public function isAvailable ()
97
+ {
98
+ return $ this ->get (ConfigOptionsListConstants::CONFIG_PATH_INSTALL_DATE ) !== null ;
99
+ }
100
+
89
101
/**
90
102
* Gets a value specified key from config data
91
103
*
@@ -111,15 +123,14 @@ public function getConfigData($key = null)
111
123
}
112
124
113
125
/**
114
- * Checks if data available
126
+ * Resets config data
115
127
*
116
- * @return bool
117
- * @throws FileSystemException
118
- * @throws RuntimeException
128
+ * @return void
119
129
*/
120
- public function isAvailable ()
130
+ public function resetData ()
121
131
{
122
- return $ this ->get (ConfigOptionsListConstants::CONFIG_PATH_INSTALL_DATE ) !== null ;
132
+ $ this ->data = [];
133
+ $ this ->flatData = [];
123
134
}
124
135
125
136
/**
@@ -135,17 +146,6 @@ public function isDbAvailable()
135
146
return $ this ->getConfigData ('db ' ) !== null ;
136
147
}
137
148
138
- /**
139
- * Resets config data
140
- *
141
- * @return void
142
- */
143
- public function resetData ()
144
- {
145
- $ this ->data = [];
146
- $ this ->flatData = [];
147
- }
148
-
149
149
/**
150
150
* Loads the configuration data
151
151
*
You can’t perform that action at this time.
0 commit comments