Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Commit

Permalink
fix(swoole): Make swoole http server lazy (#132)
Browse files Browse the repository at this point in the history
When swoole server was running (e.g. in docker container), trying to execute any commands resulted
in creation of new swoole http server instance, which leads to an error due to port allocation
  • Loading branch information
k911 committed Jun 30, 2018
1 parent eab7f84 commit 04a7dcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Resources/config/services.yaml
Expand Up @@ -43,6 +43,7 @@ services:
'App\Bundle\SwooleBundle\Driver\LimitedHttpDriver':

'Swoole\Http\Server':
lazy: true

'App\Bundle\SwooleBundle\Command\ServerRunCommand':
tags: ['console.command']
Expand Down

0 comments on commit 04a7dcc

Please sign in to comment.