Skip to content

Commit 9388333

Browse files
committed
fixes
1 parent aa0b219 commit 9388333

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

lib/DI/services.php

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ class Services
6868
*/
6969
private $environment;
7070

71-
/**
72-
* @var boolean $booted Загружена ли уже конструкция.
73-
*/
74-
private static $booted = false;
75-
7671
/**
7772
* @var boolean $debug Режим отладки.
7873
*/
@@ -113,10 +108,7 @@ public static function boot() : Container
113108
{
114109
$self = new static();
115110

116-
if (!static::$booted) {
117-
$self->load();
118-
static::setBoot(true);
119-
}
111+
$self->load();
120112

121113
return $self->getContainer();
122114
}
@@ -132,16 +124,6 @@ public static function getInstance() : Container
132124
return static::boot();
133125
}
134126

135-
/**
136-
* @param boolean $booted
137-
*
138-
* @return void
139-
*/
140-
public static function setBoot(bool $booted) : void
141-
{
142-
static::$booted = $booted;
143-
}
144-
145127
/**
146128
* Загрузка всего хозяйства.
147129
*

0 commit comments

Comments
 (0)