Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
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
PSDI Army
yii2
Commits
7c98ef59
Commit
7c98ef59
authored
Jan 19, 2014
by
Daniel Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed type in JsonParser
parent
1026b9da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
JsonParser.php
framework/web/JsonParser.php
+1
-1
RequestParserInterface.php
framework/web/RequestParserInterface.php
+4
-4
No files found.
framework/web/JsonParser.php
View file @
7c98ef59
...
@@ -35,7 +35,7 @@ class JsonParser implements RequestParserInterface
...
@@ -35,7 +35,7 @@ class JsonParser implements RequestParserInterface
public
function
parse
(
$rawBody
)
public
function
parse
(
$rawBody
)
{
{
try
{
try
{
return
Json
::
en
code
(
$rawBody
,
$this
->
asArray
);
return
Json
::
de
code
(
$rawBody
,
$this
->
asArray
);
}
catch
(
InvalidParamException
$e
)
{
}
catch
(
InvalidParamException
$e
)
{
if
(
$this
->
throwException
)
{
if
(
$this
->
throwException
)
{
throw
$e
;
throw
$e
;
...
...
framework/web/RequestParserInterface.php
View file @
7c98ef59
...
@@ -15,9 +15,9 @@ namespace yii\web;
...
@@ -15,9 +15,9 @@ namespace yii\web;
*/
*/
interface
RequestParserInterface
interface
RequestParserInterface
{
{
/**
/**
* @param string $rawBody the raw HTTP request body
* @param string $rawBody the raw HTTP request body
* @return array parameters parsed from the request body
* @return array parameters parsed from the request body
*/
*/
public
function
parse
(
$rawBody
);
public
function
parse
(
$rawBody
);
}
}
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