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
7898094e
Commit
7898094e
authored
Sep 18, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up a few more things.
parent
cb5a426c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
container.php
laravel/config/container.php
+1
-1
connection.php
laravel/database/connection.php
+12
-3
No files found.
laravel/config/container.php
View file @
7898094e
...
@@ -108,7 +108,7 @@ return array(
...
@@ -108,7 +108,7 @@ return array(
(
$request
->
spoofed
())
?
$input
=
$_POST
:
parse_str
(
file_get_contents
(
'php://input'
),
$input
);
(
$request
->
spoofed
())
?
$input
=
$_POST
:
parse_str
(
file_get_contents
(
'php://input'
),
$input
);
}
}
unset
(
$input
[
'_REQUEST_METHOD
_
'
]);
unset
(
$input
[
'_REQUEST_METHOD'
]);
return
new
Input
(
$container
->
resolve
(
'laravel.file'
),
$container
->
resolve
(
'laravel.cookie'
),
$input
,
$_FILES
);
return
new
Input
(
$container
->
resolve
(
'laravel.file'
),
$container
->
resolve
(
'laravel.cookie'
),
$input
,
$_FILES
);
}),
}),
...
...
laravel/database/connection.php
View file @
7898094e
...
@@ -13,7 +13,14 @@ class Connection {
...
@@ -13,7 +13,14 @@ class Connection {
protected
$config
;
protected
$config
;
/**
/**
* The PDO connection.
* The query grammar instance for the connection.
*
* @var Grammars\Grammar
*/
protected
$grammar
;
/**
* The raw PDO connection instance.
*
*
* @var PDO
* @var PDO
*/
*/
...
@@ -127,13 +134,15 @@ class Connection {
...
@@ -127,13 +134,15 @@ class Connection {
*/
*/
protected
function
grammar
()
protected
function
grammar
()
{
{
if
(
isset
(
$this
->
grammar
))
return
$this
->
grammar
;
switch
(
isset
(
$this
->
config
[
'grammar'
])
?
$this
->
config
[
'grammar'
]
:
$this
->
driver
())
switch
(
isset
(
$this
->
config
[
'grammar'
])
?
$this
->
config
[
'grammar'
]
:
$this
->
driver
())
{
{
case
'mysql'
:
case
'mysql'
:
return
new
Grammars\MySQL
;
return
$this
->
grammar
=
new
Grammars\MySQL
;
default
:
default
:
return
new
Grammars\Grammar
;
return
$this
->
grammar
=
new
Grammars\Grammar
;
}
}
}
}
...
...
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