Skip to content

Commit 810d6f4

Browse files
authored
Update Application.php (#57665)
1 parent 1751d2c commit 810d6f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Illuminate/Foundation/Application.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,11 @@ public function getCachedPackagesPath()
13021302
*/
13031303
public function configurationIsCached()
13041304
{
1305-
return is_file($this->getCachedConfigPath());
1305+
if ($this->bound('config_loaded_from_cache')) {
1306+
return (bool) $this->make('config_loaded_from_cache');
1307+
}
1308+
1309+
return $this->instance('config_loaded_from_cache', is_file($this->getCachedConfigPath()));
13061310
}
13071311

13081312
/**

0 commit comments

Comments
 (0)