I want to add my function handleParameters()
into my AuthController
but I had "Expected to find a class ... while importing services from resource... but it was not found!"
HandleParameters.php
<?php
function handleParameters(array $aRequired, &$aRes, $requestMethod) {...}
?>
AuthController.php
<?php
class AuthController extends Controller
{
public function getAuth()
{
require_once (dirname(__DIR__, 1) .'/Common/HandleParameters.php');
handleParameters($aRequired, $this->aRes, $_SERVER['REQUEST_METHOD']);
...
}
}