File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ use ServiceBus\Application\DependencyInjection\Compiler\Logger\StdOutLoggerCompi
1616
1717include __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
3537Loop::run (
3638 static function () use ($ container ): \Generator
You can’t perform that action at this time.
0 commit comments