@@ -38,8 +38,8 @@ use TheCodingMachine\GraphQLite\SchemaFactory;
38
38
// $cache is a PSR-16 compatible cache
39
39
// $container is a PSR-11 compatible container
40
40
$factory = new SchemaFactory($cache, $container);
41
- $factory->addControllerNamespace('App\\Controllers\\ ')
42
- ->addTypeNamespace('App\\ ');
41
+ $factory->addControllerNamespace('App\\Controllers')
42
+ ->addTypeNamespace('App');
43
43
44
44
$schema = $factory->createSchema();
45
45
```
@@ -109,8 +109,8 @@ use Kcs\ClassFinder\Finder\ComposerFinder;
109
109
use TheCodingMachine\GraphQLite\SchemaFactory;
110
110
111
111
$factory = new SchemaFactory($cache, $container);
112
- $factory->addControllerNamespace('App\\Controllers\\ ')
113
- ->addTypeNamespace('App\\ ')
112
+ $factory->addControllerNamespace('App\\Controllers')
113
+ ->addTypeNamespace('App')
114
114
->setFinder(
115
115
(new ComposerFinder())->useAutoloading(false)
116
116
);
@@ -132,8 +132,8 @@ use TheCodingMachine\GraphQLite\Context\Context;
132
132
// $cache is a PSR-16 compatible cache.
133
133
// $container is a PSR-11 compatible container.
134
134
$factory = new SchemaFactory($cache, $container);
135
- $factory->addControllerNamespace('App\\Controllers\\ ')
136
- ->addTypeNamespace('App\\ ');
135
+ $factory->addControllerNamespace('App\\Controllers')
136
+ ->addTypeNamespace('App');
137
137
138
138
$schema = $factory->createSchema();
139
139
@@ -290,8 +290,8 @@ return new Picotainer([
290
290
Schema::class => function(ContainerInterface $container) {
291
291
// The magic happens here. We create a schema using GraphQLite SchemaFactory.
292
292
$factory = new SchemaFactory($container->get(CacheInterface::class), $container);
293
- $factory->addControllerNamespace('App\\Controllers\\ ');
294
- $factory->addTypeNamespace('App\\ ');
293
+ $factory->addControllerNamespace('App\\Controllers');
294
+ $factory->addTypeNamespace('App');
295
295
return $factory->createSchema();
296
296
}
297
297
]);
0 commit comments