Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
76a5bc48
Commit
76a5bc48
authored
Oct 15, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring various classes.
parent
2b93963f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
25 deletions
+13
-25
cookie.php
laravel/cookie.php
+3
-1
laravel.php
laravel/laravel.php
+1
-13
controller.php
laravel/routing/controller.php
+1
-1
apc.php
laravel/session/drivers/apc.php
+0
-4
file.php
laravel/session/drivers/file.php
+4
-1
cookie.php
laravel/session/transporters/cookie.php
+4
-5
No files found.
laravel/cookie.php
View file @
76a5bc48
...
...
@@ -92,7 +92,9 @@ class Cookie {
$time
=
(
$minutes
!==
0
)
?
time
()
+
(
$minutes
*
60
)
:
0
;
return
setcookie
(
$name
,
static
::
hash
(
$name
,
$value
)
.
'~'
.
$value
,
$time
,
$path
,
$domain
,
$secure
,
$http_only
);
$value
=
static
::
hash
(
$name
,
$value
)
.
'~'
.
$value
;
return
setcookie
(
$name
,
$value
,
$time
,
$path
,
$domain
,
$secure
,
$http_only
);
}
/**
...
...
laravel/laravel.php
View file @
76a5bc48
...
...
@@ -101,16 +101,6 @@ else
$response
=
Response
::
error
(
'404'
);
}
if
(
$response
instanceof
Routing\Delegate
)
{
$response
=
Routing\Controller
::
call
(
$response
,
$route
->
parameters
);
}
if
(
!
$response
instanceof
Response
)
{
$response
=
new
Response
(
$response
);
}
/**
* Stringify the response. We need to force the response to be
* stringed before closing the session, since the developer may
...
...
@@ -127,9 +117,7 @@ $response->content = $response->render();
*/
if
(
Config
::
$items
[
'session'
][
'driver'
]
!==
''
)
{
$flash
=
array
(
Input
::
old_input
=>
Input
::
get
());
Session\Manager
::
close
(
$flash
);
Session\Manager
::
close
(
array
(
Input
::
old_input
=>
Input
::
get
()));
}
/**
...
...
laravel/routing/controller.php
View file @
76a5bc48
...
...
@@ -32,7 +32,7 @@ abstract class Controller {
* @param array $parameters
* @return mixed
*/
public
static
function
call
(
$destination
,
$parameters
)
public
static
function
call
(
$destination
,
$parameters
=
array
()
)
{
if
(
strpos
(
$destination
,
'@'
)
===
false
)
{
...
...
laravel/session/drivers/apc.php
View file @
76a5bc48
...
...
@@ -5,10 +5,6 @@ class APC implements Driver {
/**
* The APC cache driver instance.
*
* This session driver relies on the APC cache driver to provide an interface for
* working with an APC equipped server. The cache driver will provide all of the
* functionality for retrieving and storing items in APC.
*
* @var Cache\Drivers\APC
*/
private
$apc
;
...
...
laravel/session/drivers/file.php
View file @
76a5bc48
...
...
@@ -57,7 +57,10 @@ class File implements Driver, Sweeper {
*/
public
function
delete
(
$id
)
{
if
(
file_exists
(
$this
->
path
.
$id
))
@
unlink
(
$this
->
path
.
$id
);
if
(
file_exists
(
$this
->
path
.
$id
))
{
@
unlink
(
$this
->
path
.
$id
);
}
}
/**
...
...
laravel/session/transporters/cookie.php
View file @
76a5bc48
...
...
@@ -29,12 +29,11 @@ class Cookie implements Transporter {
*/
public
function
put
(
$id
,
$config
)
{
// Session cookies may be set to expire on close, which means we will
// need to pass "0" into the cookie manager. This will cause the
// cookie to not be deleted until the user closes their browser.
$minutes
=
(
!
$config
[
'expire_on_close'
])
?
$config
[
'lifetime'
]
:
0
;
extract
(
$config
,
EXTR_SKIP
);
\Laravel\Cookie
::
put
(
Cookie
::
key
,
$id
,
$minutes
,
$config
[
'path'
],
$config
[
'domain'
],
$config
[
'secure'
]);
$minutes
=
(
!
$expire_on_close
)
?
$lifetime
:
0
;
\Laravel\Cookie
::
put
(
Cookie
::
key
,
$id
,
$minutes
,
$path
,
$domain
,
$secure
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment