File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55use Symfony \Component \DependencyInjection \Exception \ServiceNotFoundException ;
66use Symfony \Component \HttpFoundation \Request ;
77use Symfony \Component \HttpFoundation \Response ;
8- use Symfony \Component \DependencyInjection \ContainerAware ;
8+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
9+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
910
1011/**
1112 * Controller for executing JSON-RPC 2.0 requests
4142 * @author Christoph Singer
4243 *
4344 */
44- class JsonRpcController extends ContainerAware
45+ class JsonRpcController implements ContainerAwareInterface
4546{
47+ use ContainerAwareTrait;
48+
4649 const PARSE_ERROR = -32700 ;
4750 const INVALID_REQUEST = -32600 ;
4851 const METHOD_NOT_FOUND = -32601 ;
Original file line number Diff line number Diff line change 11wa72_json_rpc :
2- pattern : " {optionalTrailingSlash} "
2+ path : /
33 defaults : { _controller: wa72_jsonrpc.jsonrpccontroller:execute, optionalTrailingSlash : "/" }
44 requirements : { optionalTrailingSlash : "[/]{0,1}" }
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ parameters:
44services :
55 wa72_jsonrpc.jsonrpccontroller :
66 class : %wa72_jsonrpc.jsonrpccontroller.class%
7- arguments : [@service_container, %wa72.jsonrpc%]
7+ arguments : [' @service_container' , %wa72.jsonrpc%]
Original file line number Diff line number Diff line change 1414 ],
1515 "require" :{
1616 "php" :" >=5.3.1" ,
17- "symfony/symfony" :" ~2.3 " ,
18- "jms/serializer-bundle" :" ~0.13 "
17+ "symfony/symfony" :" ~3.0 " ,
18+ "jms/serializer-bundle" :" ~1.1 "
1919 },
2020 "autoload" :{
2121 "psr-0" :{
You can’t perform that action at this time.
0 commit comments