File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 55use Bitrix \Main \Config \Configuration ;
66use Closure ;
77use Exception ;
8- use Proklung \RabbitMQ \RabbitMq \Consumer ;
98use Symfony \Component \DependencyInjection \Container ;
109use Symfony \Component \DependencyInjection \ContainerBuilder ;
1110use Proklung \RabbitMq \RabbitMq \Binding ;
12- use Proklung \RabbitMQ \RabbitMq \DequeuerAwareInterface ;
1311use Proklung \RabbitMq \Utils \BitrixSettingsDiAdapter ;
1412use Symfony \Component \DependencyInjection \ContainerInterface ;
1513use Symfony \Component \DependencyInjection \Definition ;
@@ -46,11 +44,6 @@ class Services
4644 */
4745 private $ environment ;
4846
49- /**
50- * @var boolean $booted Загружена ли уже конструкция.
51- */
52- private static $ booted = false ;
53-
5447 /**
5548 * @var boolean $debug Режим отладки.
5649 */
@@ -91,10 +84,7 @@ public static function boot() : Container
9184 {
9285 $ self = new static ();
9386
94- if (!static ::$ booted ) {
95- $ self ->load ();
96- static ::setBoot (true );
97- }
87+ $ self ->load ();
9888
9989 return $ self ->getContainer ();
10090 }
@@ -110,16 +100,6 @@ public static function getInstance() : Container
110100 return static ::boot ();
111101 }
112102
113- /**
114- * @param boolean $booted
115- *
116- * @return void
117- */
118- public static function setBoot (bool $ booted ) : void
119- {
120- static ::$ booted = $ booted ;
121- }
122-
123103 /**
124104 * @return void
125105 * @throws Exception
You can’t perform that action at this time.
0 commit comments