diff --git a/Driver/LimitedHttpDriver.php b/Driver/LimitedHttpDriver.php index 0f402dc1..8932e905 100644 --- a/Driver/LimitedHttpDriver.php +++ b/Driver/LimitedHttpDriver.php @@ -4,7 +4,7 @@ namespace App\Bundle\SwooleBundle\Driver; -use App\Bundle\SwooleBundle\Server\AtomicCounter; +use App\Bundle\SwooleBundle\Memory\Atomic\AtomicCounter; use InvalidArgumentException; use Swoole\Http\Request; use Swoole\Http\Response; diff --git a/Server/AtomicCounter.php b/Memory/Atomic/AtomicCounter.php similarity index 90% rename from Server/AtomicCounter.php rename to Memory/Atomic/AtomicCounter.php index de80aadc..c866b106 100644 --- a/Server/AtomicCounter.php +++ b/Memory/Atomic/AtomicCounter.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace App\Bundle\SwooleBundle\Server; +namespace App\Bundle\SwooleBundle\Memory\Atomic; use Swoole\Atomic; diff --git a/Resources/config/services.yaml b/Resources/config/services.yaml index 940a9576..92a6468c 100644 --- a/Resources/config/services.yaml +++ b/Resources/config/services.yaml @@ -4,8 +4,8 @@ services: autoconfigure: true public: false - 'App\Bundle\SwooleBundle\Server\AtomicCounter': - factory: [App\Bundle\SwooleBundle\Server\AtomicCounter, fromZero] + 'App\Bundle\SwooleBundle\Memory\Atomic\AtomicCounter': + factory: ['App\Bundle\SwooleBundle\Memory\Atomic\AtomicCounter', fromZero] 'App\Bundle\SwooleBundle\Bridge\Symfony\HttpFoundation\RequestFactoryInterface': class: App\Bundle\SwooleBundle\Bridge\Symfony\HttpFoundation\RequestFactory @@ -47,6 +47,7 @@ services: 'App\Bundle\SwooleBundle\Command\ServerRunCommand': tags: ['console.command'] + 'App\Bundle\SwooleBundle\Command\ServerProfileCommand': tags: ['console.command'] arguments: