original_string: public function config($config = null)
      {
          $register_function = false;
  
          if (!empty($config)) {
              if (is_array($config)) {
                  if (isset($config['exit_allowed'])) {
                      $this->config['exit_allowed'] = (bool)$config['exit_allowed'];
                  }
  
                  if (isset($config['auto_session'])) {
                      $this->config['auto_session'] = (bool)$config['auto_session'];
                  }
  
                  if (isset($config['return'])) {
                      $this->config['return'] = (bool)$config['return'];
                  }
  
                  if (isset($config['set_always_available'])) {
                      $this->config['set_always_available'] = (bool)$config['set_always_available'];
                  }
  
                  if (isset($config['exceptions'])) {
                      $this->config['exceptions'] = (bool)$config['exceptions'];
                  }
  
                  if (isset($config['csrf'])) {
                      $this->config['csrf'] = (bool)$config['csrf'];
                  }
  
                  if (isset($config['error_reporting'])) {
                      if ($config['error_reporting'] !== false) {
                          $this->config['error_reporting'] = (int)$config['error_reporting'];
                      } else {
                          $this->config['error_reporting'] = false;
                      }
  
                      $register_function = true;
                  }
  
                  if ($register_function || $this->init) {
                      register_shutdown_function(sprintf('%s::shutdown_handler', __CLASS__), $this->config['error_reporting'] !== false);
                      $this->init = false;
                  }
  
                  return $this;
              } elseif (!empty($config) && is_string($config) && isset($this->config[$config])) {
                  return $this->config[$config];
              }
          }
  
          return $this->config;
      }
code: public function config($config = null)
      {
          $register_function = false;
  
          if (!empty($config)) {
              if (is_array($config)) {
                  if (isset($config['exit_allowed'])) {
                      $this->config['exit_allowed'] = (bool)$config['exit_allowed'];
                  }
  
                  if (isset($config['auto_session'])) {
                      $this->config['auto_session'] = (bool)$config['auto_session'];
                  }
  
                  if (isset($config['return'])) {
                      $this->config['return'] = (bool)$config['return'];
                  }
  
                  if (isset($config['set_always_available'])) {
                      $this->config['set_always_available'] = (bool)$config['set_always_available'];
                  }
  
                  if (isset($config['exceptions'])) {
                      $this->config['exceptions'] = (bool)$config['exceptions'];
                  }
  
                  if (isset($config['csrf'])) {
                      $this->config['csrf'] = (bool)$config['csrf'];
                  }
  
                  if (isset($config['error_reporting'])) {
                      if ($config['error_reporting'] !== false) {
                          $this->config['error_reporting'] = (int)$config['error_reporting'];
                      } else {
                          $this->config['error_reporting'] = false;
                      }
  
                      $register_function = true;
                  }
  
                  if ($register_function || $this->init) {
                      register_shutdown_function(sprintf('%s::shutdown_handler', __CLASS__), $this->config['error_reporting'] !== false);
                      $this->init = false;
                  }
  
                  return $this;
              } elseif (!empty($config) && is_string($config) && isset($this->config[$config])) {
                  return $this->config[$config];
              }
          }
  
          return $this->config;
      }
code_tokens: public function config ( $ config = null ) { $ register_function = false ; if ( ! empty ( $ config ) ) { if ( is_array ( $ config ) ) { if ( isset ( $ config [ 'exit_allowed' ] ) ) { $ this -> config [ 'exit_allowed' ] = ( bool ) $ config [ 'exit_allowed' ] ; } if ( isset ( $ config [ 'auto_session' ] ) ) { $ this -> config [ 'auto_session' ] = ( bool ) $ config [ 'auto_session' ] ; } if ( isset ( $ config [ 'return' ] ) ) { $ this -> config [ 'return' ] = ( bool ) $ config [ 'return' ] ; } if ( isset ( $ config [ 'set_always_available' ] ) ) { $ this -> config [ 'set_always_available' ] = ( bool ) $ config [ 'set_always_available' ] ; } if ( isset ( $ config [ 'exceptions' ] ) ) { $ this -> config [ 'exceptions' ] = ( bool ) $ config [ 'exceptions' ] ; } if ( isset ( $ config [ 'csrf' ] ) ) { $ this -> config [ 'csrf' ] = ( bool ) $ config [ 'csrf' ] ; } if ( isset ( $ config [ 'error_reporting' ] ) ) { if ( $ config [ 'error_reporting' ] !== false ) { $ this -> config [ 'error_reporting' ] = ( int ) $ config [ 'error_reporting' ] ; } else { $ this -> config [ 'error_reporting' ] = false ; } $ register_function = true ; } if ( $ register_function || $ this -> init ) { register_shutdown_function ( sprintf ( '%s::shutdown_handler' , __CLASS__ ) , $ this -> config [ 'error_reporting' ] !== false ) ; $ this -> init = false ; } return $ this ; } elseif ( ! empty ( $ config ) && is_string ( $ config ) && isset ( $ this -> config [ $ config ] ) ) { return $ this -> config [ $ config ] ; } } return $ this -> config ; }
docstring: Config the current instance of Phery
  
  <code>
  array(
  // Defaults to true, stop further script execution
  'exit_allowed' => true|false,
  
  // Throw exceptions on errors
  'exceptions' => true|false,
  
  // Return the responses in the process() call instead of echo'ing
  'return' => true|false,
  
  // Error reporting temporarily using error_reporting(). 'false' disables
  // the error_reporting and wont try to catch any error.
  // Anything else than false will throw a PheryResponse->exception() with
  // the message
  'error_reporting' => false|E_ALL|E_DEPRECATED|...
  
  // By default, the function Phery::instance()->set() will only
  // register functions when the current request is an AJAX call,
  // to save resources. In order to use Phery::instance()->get_function()
  // anytime, you need to set this config value to true
  'set_always_available' => false|true
  );
  </code>
  
  If you pass a string, it will return the current config for the key specified
  Anything else, will output the current config as associative array
  
  @param string|array $config Associative array containing the following options
  
  @return Phery|string|array
docstring_tokens: Config the current instance of Phery