Skip to content

Commit

Permalink
up: remove throw container exception doc from tcp and tcp-server
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Sep 17, 2019
1 parent 71eccde commit 0dd1709
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace Swoft\Tcp;

use ReflectionException;
use Swoft\Bean\Annotation\Mapping\Bean;
use Swoft\Bean\Exception\ContainerException;
use Swoft\Server\Concern\CommonProtocolDataTrait;
use Swoft\Stdlib\Helper\JsonHelper;
use function bean;
Expand Down Expand Up @@ -32,8 +30,6 @@ class Package
* @param array $ext
*
* @return Package
* @throws ReflectionException
* @throws ContainerException
*/
public static function new(string $route, $data, array $ext = []): self
{
Expand Down
4 changes: 0 additions & 4 deletions src/Packer/JsonPacker.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace Swoft\Tcp\Packer;

use ReflectionException;
use Swoft\Bean\Annotation\Mapping\Bean;
use Swoft\Bean\Exception\ContainerException;
use Swoft\Stdlib\Helper\JsonHelper;
use Swoft\Tcp\Contract\PackerInterface;
use Swoft\Tcp\Package;
Expand Down Expand Up @@ -46,8 +44,6 @@ public function encode(Package $package): string
* @param string $data package data
*
* @return Package
* @throws ReflectionException
* @throws ContainerException
*/
public function decode(string $data): Package
{
Expand Down
4 changes: 0 additions & 4 deletions src/Packer/PhpPacker.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Swoft\Tcp\Packer;

use ReflectionException;
use Swoft\Bean\Exception\ContainerException;
use Swoft\Tcp\Contract\PackerInterface;
use Swoft\Tcp\Package;
use Swoft\Tcp\Response;
Expand Down Expand Up @@ -47,8 +45,6 @@ public function encode(Package $package): string
* @param string $data package data
*
* @return Package
* @throws ReflectionException
* @throws ContainerException
*/
public function decode(string $data): Package
{
Expand Down
4 changes: 0 additions & 4 deletions src/Packer/SimpleTokenPacker.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace Swoft\Tcp\Packer;

use ReflectionException;
use Swoft\Bean\Annotation\Mapping\Bean;
use Swoft\Bean\Exception\ContainerException;
use Swoft\Tcp\Contract\PackerInterface;
use Swoft\Tcp\Package;
use Swoft\Tcp\Response;
Expand Down Expand Up @@ -57,8 +55,6 @@ public function encode(Package $package): string
* @param string $data Request package data, use first space to split cmd and data.
*
* @return Package
* @throws ReflectionException
* @throws ContainerException
*/
public function decode(string $data): Package
{
Expand Down

0 comments on commit 0dd1709

Please sign in to comment.