original_string: public function configure(array $config = []) {
          $this->_config = [
              'request_path' => filter_input(INPUT_SERVER, 'REQUEST_URI', FILTER_SANITIZE_STRING),
              'request_queries' => filter_input(INPUT_SERVER, 'QUERY_STRINGS', FILTER_SANITIZE_STRING),
              'request_controller' => FALSE,
              'request_action' => FALSE,
              'root_dir' => NULL,
              'default_controller' => 'index',
              'default_action' => 'index'
          ] + $config;
          
          if ( $this->_config['request_controller'] === FALSE || $this->_config['request_action'] === FALSE) {
              $url = explode('/', $this->_config['request_path']);
              $this->_config['request_controller'] = array_shift($url);
              $this->_config['request_action'] = array_shift($url);
          }
      }
code: public function configure(array $config = []) {
          $this->_config = [
              'request_path' => filter_input(INPUT_SERVER, 'REQUEST_URI', FILTER_SANITIZE_STRING),
              'request_queries' => filter_input(INPUT_SERVER, 'QUERY_STRINGS', FILTER_SANITIZE_STRING),
              'request_controller' => FALSE,
              'request_action' => FALSE,
              'root_dir' => NULL,
              'default_controller' => 'index',
              'default_action' => 'index'
          ] + $config;
          
          if ( $this->_config['request_controller'] === FALSE || $this->_config['request_action'] === FALSE) {
              $url = explode('/', $this->_config['request_path']);
              $this->_config['request_controller'] = array_shift($url);
              $this->_config['request_action'] = array_shift($url);
          }
      }
code_tokens: public function configure ( array $ config = [ ] ) { $ this -> _config = [ 'request_path' => filter_input ( INPUT_SERVER , 'REQUEST_URI' , FILTER_SANITIZE_STRING ) , 'request_queries' => filter_input ( INPUT_SERVER , 'QUERY_STRINGS' , FILTER_SANITIZE_STRING ) , 'request_controller' => FALSE , 'request_action' => FALSE , 'root_dir' => NULL , 'default_controller' => 'index' , 'default_action' => 'index' ] + $ config ; if ( $ this -> _config [ 'request_controller' ] === FALSE || $ this -> _config [ 'request_action' ] === FALSE ) { $ url = explode ( '/' , $ this -> _config [ 'request_path' ] ) ; $ this -> _config [ 'request_controller' ] = array_shift ( $ url ) ; $ this -> _config [ 'request_action' ] = array_shift ( $ url ) ; } }
docstring: Configura el helper actual
  @param array $config
docstring_tokens: Configura el helper actual