Skip to content

Commit 2965440

Browse files
committed
Moved GraphQL\Utils to GraphQL\Utils\Utils
1 parent ed28ded commit 2965440

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+461
-442
lines changed

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Upgrade
22

3+
## Upgrade v0.9.x > v0.10.x
4+
### Deprecated: GraphQL\Utils moved to GraphQL\Utils\Utils
5+
Old class still exists, but triggers deprecation warning.
6+
37
## Upgrade v0.7.x > v0.8.x
48
All of those changes apply to those who extends various parts of this library.
59
If you only use the library and don't try to extend it - everything should work without breaks.

benchmarks/Utils/QueryGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use GraphQL\Type\Definition\InterfaceType;
1313
use GraphQL\Type\Definition\ObjectType;
1414
use GraphQL\Type\Definition\WrappingType;
15-
use GraphQL\Utils;
15+
use GraphQL\Utils\Utils;
1616

1717
class QueryGenerator
1818
{

docs/type-system/scalar-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace MyApp;
4444
use GraphQL\Error\Error;
4545
use GraphQL\Language\AST\StringValueNode;
4646
use GraphQL\Type\Definition\ScalarType;
47-
use GraphQL\Utils;
47+
use GraphQL\Utils\Utils;
4848

4949
class EmailType extends ScalarType
5050
{

examples/01-blog/Blog/AppContext.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php
22
namespace GraphQL\Examples\Blog;
33

4-
use GraphQL\Examples\Blog\Data\DataSource;
54
use GraphQL\Examples\Blog\Data\User;
6-
use GraphQL\Utils;
75

86
/**
97
* Class AppContext

examples/01-blog/Blog/Data/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace GraphQL\Examples\Blog\Data;
33

44

5-
use GraphQL\Utils;
5+
use GraphQL\Utils\Utils;
66

77
class Comment
88
{

examples/01-blog/Blog/Data/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace GraphQL\Examples\Blog\Data;
33

4-
use GraphQL\Utils;
4+
use GraphQL\Utils\Utils;
55

66
class Image
77
{

examples/01-blog/Blog/Data/Story.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace GraphQL\Examples\Blog\Data;
33

4-
use GraphQL\Utils;
4+
use GraphQL\Utils\Utils;
55

66
class Story
77
{

examples/01-blog/Blog/Data/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace GraphQL\Examples\Blog\Data;
33

4-
use GraphQL\Utils;
4+
use GraphQL\Utils\Utils;
55

66
class User
77
{

examples/01-blog/Blog/Type/Scalar/EmailType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use GraphQL\Error\Error;
55
use GraphQL\Language\AST\StringValueNode;
66
use GraphQL\Type\Definition\CustomScalarType;
7-
use GraphQL\Utils;
7+
use GraphQL\Utils\Utils;
88

99
class EmailType
1010
{

examples/01-blog/Blog/Type/Scalar/UrlType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use GraphQL\Language\AST\Node;
66
use GraphQL\Language\AST\StringValueNode;
77
use GraphQL\Type\Definition\ScalarType;
8-
use GraphQL\Utils;
8+
use GraphQL\Utils\Utils;
99

1010
class UrlType extends ScalarType
1111
{

0 commit comments

Comments
 (0)