public function _remap()
    {
        $oUri   = Factory::service('Uri');
        $method = $oUri->segment(3) ? $oUri->segment(3) : 'index';

        if (method_exists($this, $method) && substr($method, 0, 1) != '_') {

            $this->{$method}();

        } else {

            //  Assume the 3rd segment is a login provider supported by Hybrid Auth
            $oSocial = Factory::service('SocialSignOn', 'nails/module-auth');
            if ($oSocial->isValidProvider($method)) {
                $this->socialSignon($method);
            } else {
                show404();
            }
        }
    }
public function _remap()
    {
        $oUri   = Factory::service('Uri');
        $method = $oUri->segment(3) ? $oUri->segment(3) : 'index';

        if (method_exists($this, $method) && substr($method, 0, 1) != '_') {

            $this->{$method}();

        } else {

            //  Assume the 3rd segment is a login provider supported by Hybrid Auth
            $oSocial = Factory::service('SocialSignOn', 'nails/module-auth');
            if ($oSocial->isValidProvider($method)) {
                $this->socialSignon($method);
            } else {
                show404();
            }
        }
    }
public function _remap ( ) { $ oUri = Factory :: service ( 'Uri' ) ; $ method = $ oUri -> segment ( 3 ) ? $ oUri -> segment ( 3 ) : 'index' ; if ( method_exists ( $ this , $ method ) && substr ( $ method , 0 , 1 ) != '_' ) { $ this -> { $ method } ( ) ; } else { //  Assume the 3rd segment is a login provider supported by Hybrid Auth $ oSocial = Factory :: service ( 'SocialSignOn' , 'nails/module-auth' ) ; if ( $ oSocial -> isValidProvider ( $ method ) ) { $ this -> socialSignon ( $ method ) ; } else { show404 ( ) ; } } }
Route requests appropriately

@throws \Nails\Common\Exception\FactoryException
Route requests appropriately