1 | <?php |
||
23 | class JsonapiController extends \Neos\Flow\Mvc\Controller\ActionController |
||
24 | { |
||
25 | /** |
||
26 | * @var \Aimeos\Shop\Base\Aimeos |
||
27 | * @Flow\Inject |
||
28 | */ |
||
29 | protected $aimeos; |
||
30 | |||
31 | /** |
||
32 | * @var \Aimeos\Shop\Base\Context |
||
33 | * @Flow\Inject |
||
34 | */ |
||
35 | protected $context; |
||
36 | |||
37 | /** |
||
38 | * @var \Aimeos\Shop\Base\View |
||
39 | * @Flow\Inject |
||
40 | */ |
||
41 | protected $viewContainer; |
||
42 | |||
43 | |||
44 | /** |
||
45 | * Deletes the resource object or a list of resource objects |
||
46 | * |
||
47 | * @param string Resource location, e.g. "customer" |
||
48 | * @return string Response message content |
||
49 | * @Flow\Session(autoStart = TRUE) |
||
50 | */ |
||
51 | public function indexAction( $resource = '' ) |
||
71 | |||
72 | |||
73 | /** |
||
74 | * Returns the resource controller |
||
75 | * |
||
76 | * @param string Resource location, e.g. "customer" |
||
77 | * @return \Aimeos\Client\JsonApi\Iface JsonApi client |
||
78 | */ |
||
79 | protected function createClient( $resource ) |
||
96 | |||
97 | |||
98 | /** |
||
99 | * Returns a PSR-7 request object for the current request |
||
100 | * |
||
101 | * @return \Psr\Http\Message\ServerRequestInterface PSR-7 request object |
||
102 | */ |
||
103 | protected function getPsrRequest() |
||
123 | |||
124 | |||
125 | /** |
||
126 | * Set the response data from a PSR-7 response object |
||
127 | * |
||
128 | * @param \Psr\Http\Message\ResponseInterface $response PSR-7 response object |
||
129 | * @return string Response message content |
||
130 | */ |
||
131 | protected function setPsrResponse( \Psr\Http\Message\ResponseInterface $response ) |
||
141 | } |
||
142 |