src/FrameworkHandler.php
public function method($event, $request = [], Response $response = null)
    {
        if (is_array($request)) {
            $request = Request::i()->load()->setStage($request);
        }

        if (!($request instanceof Request)) {
            $request = Request::i()->load();
        }

        if (is_null($response)) {
            $response = Response::i()->load();
        }

        $this->trigger($event, $request, $response);

        if ($response->isError()) {
            return false;
        }

        return $response->getResults();
    }
public function method($event, $request = [], Response $response = null)
    {
        if (is_array($request)) {
            $request = Request::i()->load()->setStage($request);
        }

        if (!($request instanceof Request)) {
            $request = Request::i()->load();
        }

        if (is_null($response)) {
            $response = Response::i()->load();
        }

        $this->trigger($event, $request, $response);

        if ($response->isError()) {
            return false;
        }

        return $response->getResults();
    }
public function method ( $ event , $ request = [ ] , Response $ response = null ) { if ( is_array ( $ request ) ) { $ request = Request :: i ( ) -> load ( ) -> setStage ( $ request ) ; } if ( ! ( $ request instanceof Request ) ) { $ request = Request :: i ( ) -> load ( ) ; } if ( is_null ( $ response ) ) { $ response = Response :: i ( ) -> load ( ) ; } $ this -> trigger ( $ event , $ request , $ response ) ; if ( $ response -> isError ( ) ) { return false ; } return $ response -> getResults ( ) ; }
Runs an event like a method

@param bool $load whether to load the RnRs

@return array
Runs an event like a method