Skip to content

Commit 9c72c12

Browse files
committed
Update youshido/graphql.
1 parent b4cfd30 commit 9c72c12

26 files changed

+444
-203
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"youshido/graphql": "v1.4.2.8"
13+
"youshido/graphql": "v1.4.2.20"
1414
},
1515
"require-dev": {
1616
},

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/composer/installed.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[
22
{
33
"name": "youshido/graphql",
4-
"version": "v1.4.2.8",
5-
"version_normalized": "1.4.2.8",
4+
"version": "v1.4.2.20",
5+
"version_normalized": "1.4.2.20",
66
"source": {
77
"type": "git",
88
"url": "https://github.com/Youshido/GraphQL.git",
9-
"reference": "95db8c277e6b974c857e915ccac7395654710291"
9+
"reference": "883d4fc04861bfbb51aa7d6873024f463813c01f"
1010
},
1111
"dist": {
1212
"type": "zip",
13-
"url": "https://api.github.com/repos/Youshido/GraphQL/zipball/95db8c277e6b974c857e915ccac7395654710291",
14-
"reference": "95db8c277e6b974c857e915ccac7395654710291",
13+
"url": "https://api.github.com/repos/Youshido/GraphQL/zipball/883d4fc04861bfbb51aa7d6873024f463813c01f",
14+
"reference": "883d4fc04861bfbb51aa7d6873024f463813c01f",
1515
"shasum": ""
1616
},
1717
"require": {
@@ -20,7 +20,7 @@
2020
"require-dev": {
2121
"phpunit/phpunit": "^4.8"
2222
},
23-
"time": "2016-12-23T14:27:44+00:00",
23+
"time": "2017-03-01T22:01:30+00:00",
2424
"type": "library",
2525
"installation-source": "dist",
2626
"autoload": {
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "youshido/graphql",
3+
"description": "Pure PHP GraphQL",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "Alexandr Viniychuk",
8+
"email": "[email protected]"
9+
},
10+
{
11+
"name": "Portey Vasil",
12+
"email": "[email protected]"
13+
}
14+
],
15+
"require": {
16+
"php": ">=5.5,<8.0-DEV"
17+
},
18+
"require-dev": {
19+
"phpunit/phpunit": "^4.8"
20+
},
21+
"autoload": {
22+
"psr-4": {
23+
"Youshido\\GraphQL\\": "src"
24+
}
25+
},
26+
"autoload-dev": {
27+
"classmap": [
28+
"Tests/"
29+
]
30+
}
31+
}

vendor/youshido/graphql/src/Config/Field/FieldConfig.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
use Youshido\GraphQL\Type\TypeInterface;
1515
use Youshido\GraphQL\Type\TypeService;
1616

17+
/**
18+
* Class FieldConfig
19+
* @package Youshido\GraphQL\Config\Field
20+
* @method $this setDescription(string $description)
21+
* @method $this setCost(int $cost)
22+
*/
1723
class FieldConfig extends AbstractConfig
1824
{
1925

vendor/youshido/graphql/src/Config/Field/InputFieldConfig.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,27 @@
1212
use Youshido\GraphQL\Config\AbstractConfig;
1313
use Youshido\GraphQL\Type\TypeService;
1414

15+
/**
16+
* Class InputFieldConfig
17+
* @package Youshido\GraphQL\Config\Field
18+
* @method $this setDescription(string $description)
19+
*/
1520
class InputFieldConfig extends AbstractConfig
1621
{
1722

1823
public function getRules()
1924
{
2025
return [
21-
'name' => ['type' => TypeService::TYPE_STRING, 'final' => true],
22-
'type' => ['type' => TypeService::TYPE_ANY_INPUT, 'final' => true],
23-
'default' => ['type' => TypeService::TYPE_ANY],
24-
'description' => ['type' => TypeService::TYPE_STRING],
26+
'name' => ['type' => TypeService::TYPE_STRING, 'final' => true],
27+
'type' => ['type' => TypeService::TYPE_ANY_INPUT, 'final' => true],
28+
'defaultValue' => ['type' => TypeService::TYPE_ANY],
29+
'description' => ['type' => TypeService::TYPE_STRING],
2530
];
2631
}
2732

2833
public function getDefaultValue()
2934
{
30-
return $this->get('default');
35+
return $this->get('defaultValue');
3136
}
3237

3338
}

vendor/youshido/graphql/src/Config/Object/InterfaceTypeConfig.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
use Youshido\GraphQL\Exception\ConfigurationException;
1717
use Youshido\GraphQL\Type\TypeService;
1818

19+
/**
20+
* Class InterfaceTypeConfig
21+
* @package Youshido\GraphQL\Config\Object
22+
* @method $this setDescription(string $description)
23+
*/
1924
class InterfaceTypeConfig extends AbstractConfig implements TypeConfigInterface
2025
{
2126
use FieldsAwareConfigTrait, ArgumentsAwareConfigTrait;

vendor/youshido/graphql/src/Config/Object/ObjectTypeConfig.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
use Youshido\GraphQL\Type\InterfaceType\AbstractInterfaceType;
1515
use Youshido\GraphQL\Type\TypeService;
1616

17+
/**
18+
* Class ObjectTypeConfig
19+
* @package Youshido\GraphQL\Config\Object
20+
* @method setDescription(string $description)
21+
* @method string getDescription()
22+
*/
1723
class ObjectTypeConfig extends AbstractConfig implements TypeConfigInterface
1824
{
1925

vendor/youshido/graphql/src/Execution/Container/ContainerInterface.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,29 @@
33

44
interface ContainerInterface
55
{
6+
/**
7+
* @param string $id #Service
8+
* @return mixed
9+
*/
610
public function get($id);
711

12+
/**
13+
* @param string $id
14+
* @param mixed $value
15+
* @return mixed
16+
*/
817
public function set($id, $value);
918

19+
/**
20+
* @param string $id
21+
* @return mixed
22+
*/
1023
public function remove($id);
1124

25+
/**
26+
* @param string $id
27+
* @return mixed
28+
*/
1229
public function has($id);
1330

1431
}

0 commit comments

Comments
 (0)