Skip to content

Commit 2132807

Browse files
authored
Refactoring towards webonyx/graphql-php. (#525)
1 parent 6b3e908 commit 2132807

281 files changed

Lines changed: 5279 additions & 5647 deletions

File tree

Some content is hidden

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

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ install:
9090

9191
# Bring in the module depe ndencies without requiring a merge plugin. The
9292
# require also triggers a full 'composer install'.
93-
- composer --working-dir=$DRUPAL_BUILD_DIR require youshido/graphql:~1.5
93+
- composer --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.11.5
9494

9595
script:
9696
# Run the unit tests using phpdbg if the environment variable is 'true'.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
This module lets you craft and expose a [GraphQL] schema for [Drupal 8].
88

9-
It is is built around https://github.com/Youshido/GraphQL. As such, it supports
9+
It is is built around https://github.com/webonyx/graphql-php. As such, it supports
1010
the full official GraphQL specification with all its features.
1111

1212
You can use this module as a foundation for building your own schema through

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"homepage": "http://drupal.org/project/graphql",
66
"license": "GPL-2.0+",
77
"require": {
8-
"youshido/graphql": "1.5.3"
8+
"webonyx/graphql-php": "^0.11.5"
99
},
1010
"minimum-stability": "dev"
1111
}

doc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This module lets you craft and expose a [GraphQL] schema for [Drupal 8].
44

5-
It is is built around https://github.com/Youshido/GraphQL. As such, it supports
5+
It is is built around https://github.com/webonyx/graphql-php. As such, it supports
66
the full official GraphQL specification with all its features.
77

88
You can use this module as a foundation for building your own schema through

graphql.install

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
11
<?php
22

3-
/**
4-
* @file
5-
* Installer for the GraphQL module.
6-
*/
7-
83
/**
94
* Implements hook_requirements().
105
*/
116
function graphql_requirements($phase) {
127
// This is the first reference into the library performed by the module.
13-
$youshidoAvailable = class_exists('\Youshido\GraphQL\Validator\ConfigValidator\ConfigValidator');
8+
$libraryAvailable = class_exists('\GraphQL\GraphQL');
149

1510
$libraryArg = [
16-
'@library' => 'youshido/graphql',
11+
'@library' => 'webonyx/graphql-php',
1712
];
1813

19-
$ret = [
14+
return [
2015
'graphql' => [
2116
'title' => 'GraphQL',
22-
'description' => $youshidoAvailable
23-
? t('@library component available', $libraryArg)
24-
: t('@library component not found', $libraryArg),
25-
'severity' => $youshidoAvailable ? REQUIREMENT_OK : REQUIREMENT_ERROR,
17+
'description' => !empty($libraryAvailable) ? t('@library component available', $libraryArg) : t('@library component not found', $libraryArg),
18+
'severity' => !empty($libraryAvailable) ? REQUIREMENT_OK : REQUIREMENT_ERROR,
2619
],
2720
];
28-
29-
return $ret;
3021
}

graphql.module

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?php
22

3-
/**
4-
* @file
5-
* The GraphQL module.
6-
*/
7-
83
use Drupal\Core\Url;
94
use Drupal\graphql\Utility\StringHelper;
105

0 commit comments

Comments
 (0)