Skip to content

Commit 65af837

Browse files
committed
code style
1 parent d7c23eb commit 65af837

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

bin/consumer

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ use ServiceBus\Application\DependencyInjection\Compiler\Logger\StdOutLoggerCompi
1616

1717
include __DIR__ . '/../vendor/autoload.php';
1818

19-
/** @var \Symfony\Component\DependencyInjection\Container $container */
20-
$container = \ServiceBus\Application\Bootstrap::withDotEnv(__DIR__ . '/../.env')
19+
/** @noinspection PhpUnhandledExceptionInspection */
20+
$bootstrap = \ServiceBus\Application\Bootstrap::withDotEnv(__DIR__ . '/../.env')
2121
->useCustomCacheDirectory(__DIR__ . '/../cache')
2222
->addCompilerPasses(new StdOutLoggerCompilerPass())
2323
->addExtensions(new \AppExtension())
@@ -29,8 +29,10 @@ $container = \ServiceBus\Application\Bootstrap::withDotEnv(__DIR__ . '/../.env')
2929
(string) \getenv('SENDER_DESTINATION_TOPIC'),
3030
(string) \getenv('SENDER_DESTINATION_TOPIC_ROUTING_KEY')
3131
)
32-
)
33-
->boot();
32+
);
33+
34+
/** @noinspection PhpUnhandledExceptionInspection */
35+
$container = $bootstrap->boot();
3436

3537
Loop::run(
3638
static function() use ($container): \Generator

0 commit comments

Comments
 (0)