public function allowControllerMethods(string $object, ...$allowedMethods)
    {
        if (isset($this->controllerMethods[$object]) === false) {
            $this->controllerMethods[$object] = [];
        }

        foreach ($allowedMethods as $allowedMethod) {
            $this->controllerMethods[$object][$allowedMethod] = true;
        }
    }
public function allowControllerMethods(string $object, ...$allowedMethods)
    {
        if (isset($this->controllerMethods[$object]) === false) {
            $this->controllerMethods[$object] = [];
        }

        foreach ($allowedMethods as $allowedMethod) {
            $this->controllerMethods[$object][$allowedMethod] = true;
        }
    }
public function allowControllerMethods ( string $ object , ... $ allowedMethods ) { if ( isset ( $ this -> controllerMethods [ $ object ] ) === false ) { $ this -> controllerMethods [ $ object ] = [ ] ; } foreach ( $ allowedMethods as $ allowedMethod ) { $ this -> controllerMethods [ $ object ] [ $ allowedMethod ] = true ; } }
Adds allowed controller methods for an object

@return null
Adds allowed controller methods for an object