David Lin
5929f8e537
Update laravel/request.php
...
When running nginx with php-cgi (Fast-CGI):
spawn-fcgi -a 127.0.0.1 -p 10081 -C 50 -u nobody -f /usr/local/php5317/bin/php-cgi
The Request::cli() method will determine the web request as run from the command line.
Add ` PHP_SAPI != "cgi-fcgi" ` to resolve it.
2013-02-27 08:54:57 +08:00
Taylor Otwell
cfc024fe66
Merge pull request #1212 from franzliedke/patch-46
...
Fix CLI mode detection for some shared hosts.
2013-01-05 13:37:31 -08:00
Taylor Otwell
355cbe35a5
use hostname in environment detection.
2012-10-31 08:53:01 -05:00
Franz Liedke
d051994e2c
Fix CLI mode detection for some shared hosts.
2012-09-12 14:56:46 +03:00
Sergii Grebeniuk
690e8572aa
phpdoc fixes
2012-08-03 18:17:48 +03:00
Franz Liedke
37dbeef2bb
Use LARAVEL_START constant to calculate request time.
...
Suggested by @Kindari.
2012-07-30 13:48:55 +03:00
Franz Liedke
204a6a7980
Add a Request::time() function.
2012-07-10 15:29:26 +03:00
Jesse O'Brien
67ac2f2f9a
Default was never returned. If no IP was found it returns NULL.
...
While unit testing I found that providing a default IP address to
Request::ip() returns NULL in a CLI environment.
2012-06-06 15:10:06 -04:00
Kelly Banman
e46d9c5b6d
Fix capitalization regression in Request::server()
...
Signed-off-by: Kelly Banman <kelly.banman@gmail.com>
2012-05-21 23:56:48 -07:00
Franz Liedke
df9c223ed6
Remove obsolete class import in request.php.
2012-05-11 12:30:45 +03:00
Taylor Otwell
208eb8a380
move json method to input class.
2012-05-02 08:12:52 -05:00
Taylor Otwell
138d08c04b
added Requst::json method.
2012-05-02 08:09:23 -05:00
Taylor Otwell
58f69fdf47
fixing some issues related to environment.
2012-04-19 14:32:27 -05:00
Taylor Otwell
5d52da696f
use injection on the request::detect_env method for better testability.
2012-04-13 20:34:13 -05:00
Taylor Otwell
ab6e364546
added simpler and easier environment handling.
2012-04-12 23:35:41 -05:00
Taylor Otwell
222383c83b
check application.ssl in request::secure.
2012-04-10 11:41:02 -05:00
Taylor Otwell
97ac2c8dbf
added languages method to the request class.
2012-04-01 15:17:41 -05:00
Taylor Otwell
bcd3bd8591
adding header support.
2012-03-28 22:58:49 -05:00
Taylor Otwell
730808fb02
converting cookies to use http foundation.
2012-03-28 22:43:58 -05:00
Taylor Otwell
ad41be0eed
working on stuff.
2012-03-28 22:06:56 -05:00
Taylor Otwell
89766bef84
converting to httpfoundation response.
2012-03-28 17:11:55 -05:00
Taylor Otwell
573725ade7
use symfony http foundation where applicable.
2012-03-28 16:15:21 -05:00
Taylor Otwell
55669ee0ae
added redirect::back method.
2012-03-26 15:30:01 -05:00
Taylor Otwell
16fa094cc3
Setting up default config loader event.
...
Went ahead and just register the config.load event with Laravel on every request and default to the file implementation.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-01 11:21:11 -06:00
Taylor Otwell
f624a6849f
fix handling of HEAD http requests.
2012-02-23 08:43:55 -06:00
Taylor Otwell
3a92facc76
updated routing to fix several issues.
2012-02-12 14:48:36 -06:00
Taylor Otwell
b5442c67fc
merged skunkworks into develop.
2012-01-16 13:59:24 -06:00
Taylor Otwell
e4fce8e468
Update the csrf_token constant.
2011-11-23 10:43:25 -06:00
Taylor Otwell
a739afc32f
Use constant for CSRF token.
2011-11-23 10:32:17 -06:00
Taylor Otwell
466ccdb96c
throw an exception in the request forged method if no session driver has been specified.
2011-11-16 22:40:49 -06:00
Taylor Otwell
e226a463bf
refactoring.
2011-11-15 19:15:31 -06:00
Phill Sparks
02929f7fbd
Fixed the new URI class
2011-11-15 11:30:34 +00:00
Taylor Otwell
d1a969bd29
added uri class. refactored.
2011-11-14 21:18:18 -06:00
Taylor Otwell
f9ec36d7f8
slight clean-up to uri method.
2011-11-11 22:50:41 -06:00
Phill Sparks
b4fe148de5
Got rid of all IoC::container() calls
2011-11-11 09:52:30 +00:00
Taylor Otwell
a1e82d2166
added section class. refactored session for ioc usage. improved controller. added yielding and sections to blade. general blade improvements.
2011-11-08 20:08:20 -06:00
Taylor Otwell
9caf239f6b
various refactorings.
2011-11-02 21:27:43 -05:00
Taylor Otwell
527340d793
fix bug in request uri parsing.
2011-11-01 23:41:02 -05:00
Taylor Otwell
f824cc0f43
refactoring the uri method.
2011-10-31 22:44:54 -05:00
Taylor Otwell
b9c45264b8
tweaking a comment.
2011-10-29 23:30:53 -05:00
Taylor Otwell
0586bbe04e
remove some comment bloat from the request class.
2011-10-29 23:20:07 -05:00
Taylor Otwell
75ce8796d7
got rid of URI class and brought URI determination back to into request class.
2011-10-29 23:17:47 -05:00
Taylor Otwell
ef9e4dfd61
reverting di refactoring.
2011-10-29 22:31:50 -05:00
Taylor Otwell
932a70b6cf
refactoring for better dependency injection on a few classes.
2011-10-29 22:24:32 -05:00
Taylor Otwell
866f5d8fc3
removed provides functionality. need to explore doing this in a way that is more friendly to http, such as using the accept header.
2011-10-29 21:02:01 -05:00
Taylor Otwell
d4ddb05abb
refactoring. added default controller. added uri class.
2011-10-24 21:00:51 -05:00
Taylor Otwell
9fc9f88a41
refactoring various pieces of the framework.
2011-10-18 20:19:36 -05:00
Taylor Otwell
9fa69e0844
refactoring routing and class comments.
2011-10-13 21:32:11 -05:00
Taylor Otwell
08ea1dbbc8
fixed bug in request uri method.
2011-10-11 21:44:57 -05:00
Taylor Otwell
f6ea58ed96
improve request uri detection.
2011-10-11 21:41:57 -05:00