Deprecated some class.

This commit is contained in:
李铭昕 2019-08-15 10:36:12 +08:00
parent 136e17df10
commit 647a9bb990
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://doc.hyperf.io
* @contact group@hyperf.io
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
*/
namespace Hyperf\HttpServer;
use Psr\Container\ContainerInterface;
/**
* @deprecated v1.2
*/
class ServerFactory
{
public function __invoke(ContainerInterface $container)
{
return new Server($container);
}
}

View File

@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://doc.hyperf.io
* @contact group@hyperf.io
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
*/
namespace Hyperf\JsonRpc;
use Hyperf\Rpc\ProtocolManager;
use Psr\Container\ContainerInterface;
/**
* @deprecated v1.2
*/
class HttpServerFactory
{
public function __invoke(ContainerInterface $container)
{
return new HttpServer($container, $container->get(ProtocolManager::class));
}
}