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

Commit

Permalink
refactor(swoole): Move AtomicCounter to Memory\Atomic namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
k911 committed Sep 23, 2018
1 parent 8062a33 commit 3770d87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Driver/LimitedHttpDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace App\Bundle\SwooleBundle\Server;
namespace App\Bundle\SwooleBundle\Memory\Atomic;

use Swoole\Atomic;

Expand Down
5 changes: 3 additions & 2 deletions Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -47,6 +47,7 @@ services:

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

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

0 comments on commit 3770d87

Please sign in to comment.