We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e55495 commit 66971daCopy full SHA for 66971da
1 file changed
src/Framework/Build/BuildTools.php
@@ -41,7 +41,12 @@ class BuildTools
41
* Used for protecting developers from hurting themselves by relying on data which
42
* might have stale caches or otherwise be unready for use during build steps
43
*/
44
- public static bool $building = false;
+ private static bool $building = false;
45
+
46
+ public static function isBuilding(): bool
47
+ {
48
+ return self::$building;
49
+ }
50
51
/**
52
* @return array<string, ReflectionClass<object>>
@@ -70,7 +75,7 @@ public static function executeBuild(?LoggerInterface $logger = null): int
70
75
}
71
76
72
77
/* protect us against doing silly things */
73
- BuildTools::$building = true;
78
+ self::$building = true;
74
79
80
if (!$logger) {
81
$logger = new Logger('build');
0 commit comments