Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Jul 14, 2021
1 parent 7af42fc commit dd3a9e7
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions lib/Integration/DI/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
use Bitrix\Main\Config\Configuration;
use Closure;
use Exception;
use Proklung\RabbitMQ\RabbitMq\Consumer;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Proklung\RabbitMq\RabbitMq\Binding;
use Proklung\RabbitMQ\RabbitMq\DequeuerAwareInterface;
use Proklung\RabbitMq\Utils\BitrixSettingsDiAdapter;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Definition;
Expand Down Expand Up @@ -46,11 +44,6 @@ class Services
*/
private $environment;

/**
* @var boolean $booted Загружена ли уже конструкция.
*/
private static $booted = false;

/**
* @var boolean $debug Режим отладки.
*/
Expand Down Expand Up @@ -91,10 +84,7 @@ public static function boot() : Container
{
$self = new static();

if (!static::$booted) {
$self->load();
static::setBoot(true);
}
$self->load();

return $self->getContainer();
}
Expand All @@ -110,16 +100,6 @@ public static function getInstance() : Container
return static::boot();
}

/**
* @param boolean $booted
*
* @return void
*/
public static function setBoot(bool $booted) : void
{
static::$booted = $booted;
}

/**
* @return void
* @throws Exception
Expand Down

0 comments on commit dd3a9e7

Please sign in to comment.