Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
portey committed Jan 14, 2016
2 parents 14465d4 + a29f025 commit b2d57fc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Expand Up @@ -23,7 +23,7 @@ public function getConfigTreeBuilder()

$rootNode
->children()
->scalarNode('query_schema')->cannotBeEmpty()->isRequired()->end()
->scalarNode('query_schema')->cannotBeEmpty()->end()
->end();

return $treeBuilder;
Expand Down
29 changes: 28 additions & 1 deletion README.md
@@ -1,3 +1,30 @@
# Symfony2 GraphQl Bundle

## Not working yet
### True object oriented GraphQL PHP Server realization

This is not a PHP port of the JavaScript GraphQL.
This is a Object oriented realization of the GraphQL server conforming the [RFC Specification for GraphQL](https://facebook.github.io/graphql/).

## Installing graphql-bundle

We assume you have `composer`, if not – [go get install Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).
After that, simply run
```
$> composer require youshido/graphql-bundle='dev-master'
```
Than add bundle to your `app/AppKernel.php`
```
...
new Youshido\GraphQLBundle\GraphQLBundle(),
...
```

And finally adding routing reference to the `app/config/routing.yml`:
```
graphql:
resource: "@GraphQLBundle/Controller/"
```

## Examples

Right now you can learn some examples in our test directory but we're going to put out the whole step by step guide for you soon.

0 comments on commit b2d57fc

Please sign in to comment.