File tree Expand file tree Collapse file tree 7 files changed +8
-45
lines changed
Resources/config/container Expand file tree Collapse file tree 7 files changed +8
-45
lines changed Original file line number Diff line number Diff line change 22/composer.lock
33/build
44/var
5- /cache
5+ /cache
6+ .phpunit.result.cache
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88use Symfony \Component \DependencyInjection \ContainerBuilder ;
99use Symfony \Component \DependencyInjection \Extension \Extension ;
1010use Symfony \Component \DependencyInjection \Loader \XmlFileLoader ;
11- use TheCodingMachine \Tdbm \GraphQL \GraphQLTypeAnnotator ;
1211
1312class TdbmGraphqlExtension extends Extension
1413{
@@ -20,14 +19,7 @@ class TdbmGraphqlExtension extends Extension
2019 */
2120 public function load (array $ configs , ContainerBuilder $ container )
2221 {
23- $ configuration = new Configuration ();
24- $ config = $ this ->processConfiguration ($ configuration , $ configs );
25-
2622 $ loader = new XmlFileLoader ($ container , new FileLocator (__DIR__ .'/../Resources/config/container ' ));
2723 $ loader ->load ('tdbmgraphql.xml ' );
28-
29- $ definition = $ container ->getDefinition (GraphQLTypeAnnotator::class);
30- $ definition ->replaceArgument (0 , $ config ['type_namespace ' ]);
31- $ definition ->replaceArgument (1 , $ config ['generated_type_namespace ' ]);
3224 }
3325}
Original file line number Diff line number Diff line change 99 <services >
1010 <defaults autowire =" true" autoconfigure =" true" public =" false" />
1111
12- <service id =" TheCodingMachine\Tdbm\GraphQL\GraphQLTypeAnnotator" >
13- <argument ></argument > <!-- will be filled in with tdbm-graphql.type_namespace dynamically -->
14- <argument ></argument > <!-- will be filled in with tdbm-graphql.generated_type_namespace dynamically -->
15- </service >
12+ <service id =" TheCodingMachine\Tdbm\GraphQL\GraphQLTypeAnnotator" />
1613 </services >
1714
1815</container >
Original file line number Diff line number Diff line change 1818 ],
1919 "require" : {
2020 "php" : " >=7.2" ,
21- "thecodingmachine/graphqlite-bundle" : " ^3 " ,
21+ "thecodingmachine/graphqlite-bundle" : " ^4 " ,
2222 "thecodingmachine/tdbm-bundle" : " ^5.1" ,
23- "thecodingmachine/tdbm-graphql" : " ~3.1 .0" ,
23+ "thecodingmachine/tdbm-graphql" : " ~4 .0" ,
2424 "symfony/framework-bundle" : " ^4.1.9"
2525 },
2626 "require-dev" : {
4040 },
4141 "extra" : {
4242 "branch-alias" : {
43- "dev-master" : " 3.1 .x-dev"
43+ "dev-master" : " 4.0 .x-dev"
4444 }
4545 },
4646 "minimum-stability" : " dev" ,
Original file line number Diff line number Diff line change 1- parameters :
2- ignoreErrors :
3- - "#Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeDefinition::children\\ (\\)#"
1+ # parameters:
2+ # ignoreErrors:
43# includes:
54# - vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
You can’t perform that action at this time.
0 commit comments