Skip to content

Commit fc8f604

Browse files
authored
Disable modules on default
1 parent 25f509a commit fc8f604

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/GraphQLController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77
use Graphpinator\ErrorHandlingMode;
88
use Graphpinator\Graphpinator;
99
use Graphpinator\Module\ModuleSet;
10-
use Graphpinator\PersistedQueries\PersistedQueriesModule;
1110
use Graphpinator\Printer\HtmlVisitor;
1211
use Graphpinator\Printer\Printer;
1312
use Graphpinator\Printer\TextVisitor;
1413
use Graphpinator\Printer\TypeKindSorter;
1514
use Graphpinator\Symfony\FileProvider;
1615
use Graphpinator\Symfony\RequestFactory;
1716
use Graphpinator\Typesystem\Schema;
18-
use Graphpinator\Upload\UploadModule;
1917
use Psr\Cache\CacheItemPoolInterface;
2018
use Psr\Log\LoggerInterface;
2119
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
@@ -103,8 +101,8 @@ public function schemaFile() : Response
103101
protected function getEnabledModules(Request $request) : ModuleSet
104102
{
105103
return new ModuleSet([
106-
new UploadModule(new FileProvider($request)),
107-
new PersistedQueriesModule($this->schema, new Psr16Cache($this->cache)),
104+
//new UploadModule(new FileProvider($request)),
105+
//new PersistedQueriesModule($this->schema, new Psr16Cache($this->cache)),
108106
//new MaxDepthModule(),
109107
//new MaxNodesModule(),
110108
]);

0 commit comments

Comments
 (0)