Skip to content

Commit dd3a9e7

Browse files
committed
fixes
1 parent 7af42fc commit dd3a9e7

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

lib/Integration/DI/Services.php

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
use Bitrix\Main\Config\Configuration;
66
use Closure;
77
use Exception;
8-
use Proklung\RabbitMQ\RabbitMq\Consumer;
98
use Symfony\Component\DependencyInjection\Container;
109
use Symfony\Component\DependencyInjection\ContainerBuilder;
1110
use Proklung\RabbitMq\RabbitMq\Binding;
12-
use Proklung\RabbitMQ\RabbitMq\DequeuerAwareInterface;
1311
use Proklung\RabbitMq\Utils\BitrixSettingsDiAdapter;
1412
use Symfony\Component\DependencyInjection\ContainerInterface;
1513
use 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

0 commit comments

Comments
 (0)