We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad60d36 commit 09713efCopy full SHA for 09713ef
1 file changed
Controller/JsonRpcController.php
@@ -5,7 +5,8 @@
5
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
6
use Symfony\Component\HttpFoundation\Request;
7
use Symfony\Component\HttpFoundation\Response;
8
-use Symfony\Component\DependencyInjection\ContainerAware;
+use Symfony\Component\DependencyInjection\ContainerAwareInterface;
9
+use Symfony\Component\DependencyInjection\ContainerAwareTrait;
10
11
/**
12
* Controller for executing JSON-RPC 2.0 requests
@@ -41,8 +42,10 @@
41
42
* @author Christoph Singer
43
*
44
*/
-class JsonRpcController extends ContainerAware
45
+class JsonRpcController implements ContainerAwareInterface
46
{
47
+ use ContainerAwareTrait;
48
+
49
const PARSE_ERROR = -32700;
50
const INVALID_REQUEST = -32600;
51
const METHOD_NOT_FOUND = -32601;
0 commit comments