Skip to content

Instantly share code, notes, and snippets.

@COil
Created February 28, 2017 13:49
Show Gist options
  • Save COil/7b326fc9a7e720dc8eba63940653748c to your computer and use it in GitHub Desktop.
Save COil/7b326fc9a7e720dc8eba63940653748c to your computer and use it in GitHub Desktop.
AppController.php (output dump)
AppController.php on line 68:
array:33 [▼
"get('foo')" => "bar"
"hasPreviousSession" => true
"hasSession" => true
"getClientIps" => array:1 [▼
0 => "127.0.0.1"
]
"getClientIp" => "127.0.0.1"
"getScriptName" => "/app_dev.php"
"getPathInfo" => "/my-route"
"getBasePath" => ""
"getBaseUrl" => "/app_dev.php"
"getScheme" => "http"
"getPort" => 80
"getUser" => null
"getPassword" => null
"getUserInfo" => null
"getHttpHost" => "col.com"
"getRequestUri" => "/app_dev.php/my-route?bar=1&foo=bar"
"getSchemeAndHttpHost" => "http://col.com"
"getUri" => "http://col.com/app_dev.php/my-route?bar=1&foo=bar"
"getUriForPath('/other-path')" => "http://col.com/app_dev.php/other-path"
"getRelativeUriForPath('/other-path')" => "other-path"
"getQueryString" => "bar=1&foo=bar"
"isSecure" => false
"getHost" => "col.com"
"getMethod" => "GET"
"getRealMethod" => "GET"
"getRequestFormat" => "html"
"getContentType" => null
"getDefaultLocale" => "fr"
"getLocale" => "fr"
"isMethodSafe" => true
"isMethodIdempotent" => true
"isMethodCacheable" => true
"isXmlHttpRequest" => false
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment