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
f93d871c
Commit
f93d871c
authored
Mar 26, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed wrong method calls in elasticsearch Command
parent
cc4d4933
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
api.php
extensions/apidoc/templates/bootstrap/layouts/api.php
+1
-0
Command.php
extensions/elasticsearch/Command.php
+3
-3
No files found.
extensions/apidoc/templates/bootstrap/layouts/api.php
View file @
f93d871c
...
@@ -6,6 +6,7 @@ use yii\helpers\StringHelper;
...
@@ -6,6 +6,7 @@ use yii\helpers\StringHelper;
/**
/**
* @var yii\web\View $this
* @var yii\web\View $this
* @var array $types
* @var string $content
* @var string $content
*/
*/
...
...
extensions/elasticsearch/Command.php
View file @
f93d871c
...
@@ -95,7 +95,7 @@ class Command extends Component
...
@@ -95,7 +95,7 @@ class Command extends Component
*/
*/
public
function
get
(
$index
,
$type
,
$id
,
$options
=
[])
public
function
get
(
$index
,
$type
,
$id
,
$options
=
[])
{
{
return
$this
->
db
->
get
([
$index
,
$type
,
$id
],
$options
,
null
);
return
$this
->
db
->
get
([
$index
,
$type
,
$id
],
$options
);
}
}
/**
/**
...
@@ -184,7 +184,7 @@ class Command extends Component
...
@@ -184,7 +184,7 @@ class Command extends Component
{
{
$body
=
$configuration
!==
null
?
Json
::
encode
(
$configuration
)
:
null
;
$body
=
$configuration
!==
null
?
Json
::
encode
(
$configuration
)
:
null
;
return
$this
->
db
->
put
([
$index
],
$body
);
return
$this
->
db
->
put
([
$index
],
[],
$body
);
}
}
/**
/**
...
@@ -381,7 +381,7 @@ class Command extends Component
...
@@ -381,7 +381,7 @@ class Command extends Component
'mappings'
=>
(
object
)
$mappings
,
'mappings'
=>
(
object
)
$mappings
,
]);
]);
return
$this
->
db
->
put
([
'_template'
,
$name
],
$body
);
return
$this
->
db
->
put
([
'_template'
,
$name
],
[],
$body
);
}
}
...
...
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