1 | <?php |
||
13 | class TerminalController extends AuthorizedController |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | protected $resource = 'terminal'; |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | protected $resourceAbilityMap = [ |
||
24 | 'index' => 'run', |
||
25 | 'execute' => 'run', |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | protected $resourceMethodsWithoutModels = [ |
||
32 | 'execute', |
||
33 | ]; |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function authorizeResource($model, $parameter = null, array $options = [], $request = null): void |
||
53 | |||
54 | /** |
||
55 | * Show terminal index. |
||
56 | * |
||
57 | * @param \Illuminate\Http\Request $request |
||
58 | * @param \Cortex\Console\Services\Terminal $terminal |
||
59 | * |
||
60 | * @return \Illuminate\View\View |
||
61 | */ |
||
62 | public function index(Request $request, Terminal $terminal) |
||
100 | |||
101 | /** |
||
102 | * Process the form for store/update of the given resource. |
||
103 | * |
||
104 | * @param \Illuminate\Http\Request $request |
||
105 | * |
||
106 | * @return \Illuminate\Http\JsonResponse |
||
107 | */ |
||
108 | public function execute(Terminal $terminal, Request $request) |
||
119 | |||
120 | /** |
||
121 | * Render exception. |
||
122 | * |
||
123 | * @param \Exception $exception |
||
124 | * |
||
125 | * @return \Illuminate\View\View |
||
126 | */ |
||
127 | protected function renderException(Exception $exception) |
||
131 | } |
||
132 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.