protected function _setBehavior($action, Callable $function)
    {
        if (array_key_exists($action, $this->behaviors)) {

            $this->behaviors[$action] = $function;
            return true;
        }

        return false;
    }
protected function _setBehavior($action, Callable $function)
    {
        if (array_key_exists($action, $this->behaviors)) {

            $this->behaviors[$action] = $function;
            return true;
        }

        return false;
    }
protected function _setBehavior ( $ action , Callable $ function ) { if ( array_key_exists ( $ action , $ this -> behaviors ) ) { $ this -> behaviors [ $ action ] = $ function ; return true ; } return false ; }
Set behavior to a action before route

@param String $action
@param Callable $function
@return boolean Result
Set behavior to a action before route