techjoomla / com_api

API framework for Joomla
http://docs.techjoomla.com/joomla-rest-api/com-api-introduction
GNU General Public License v3.0
123 stars 96 forks source link

Cannot hide or remove API User #152

Open cappuccinonet opened 1 year ago

cappuccinonet commented 1 year ago

In Joomla 4.3.2 with com_api 3.0.2 I do get the following error

Compile Error: Declaration of ApiControllerKeys::getModel($name = 'key', $prefix = 'ApiModel') must be compatible with Joomla\CMS\MVC\Controller\BaseController::getModel($name = '', $prefix = '', $config = [])
in [/home/www/studentsforfuture-hamburg.de/administrator/components/com_api/controllers/keys.php ](https://studentsforfuture-hamburg.de/administrator/index.php?option=com_api&view=keys)(line 33)
 public function getModel($name = 'key', $prefix = 'ApiModel') { ...
nunomsh commented 1 week ago

Edit the function add the additional param required public function getModel($name = 'key', $prefix = 'ApiModel', $config = [])

file administrator/components/com_api/controllers/keys.php line 33