Skip to content

Commit e81e44d

Browse files
committed
Move TypeGeneratorOptions to the Model namespace
For further simplifying of dependency injection
1 parent 5c70a14 commit e81e44d

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

UPGRADE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(
5656
)
5757
```
5858
`TypeBuilder` here is a new service `Overblog\GraphQLBundle\Generator\TypeBuilder`, which is also used internally.
59-
The rest of the arguments were moved into the separate class `Overblog\GraphQLBundle\Generator\TypeGeneratorOptions`
59+
The rest of the arguments were moved into the separate class `Overblog\GraphQLBundle\Generator\Model\TypeGeneratorOptions`
6060
with the following constructor signature:
6161

6262
```php

src/Generator/TypeGeneratorOptions.php renamed to src/Generator/Model/TypeGeneratorOptions.php

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

33
declare(strict_types=1);
44

5-
namespace Overblog\GraphQLBundle\Generator;
5+
namespace Overblog\GraphQLBundle\Generator\Model;
66

77
class TypeGeneratorOptions
88
{

src/Generator/TypeGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Composer\Autoload\ClassLoader;
88
use Overblog\GraphQLBundle\Config\Processor;
99
use Overblog\GraphQLBundle\Event\SchemaCompiledEvent;
10+
use Overblog\GraphQLBundle\Generator\Model\TypeGeneratorOptions;
1011
use Symfony\Component\Filesystem\Filesystem;
1112
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1213
use function array_merge;

src/Resources/config/services.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ services:
8686
arguments:
8787
$typeConfigs: '%overblog_graphql_types.config%'
8888
$options: !service
89-
class: Overblog\GraphQLBundle\Generator\TypeGeneratorOptions
89+
class: Overblog\GraphQLBundle\Generator\Model\TypeGeneratorOptions
9090
arguments:
9191
- '%overblog_graphql.class_namespace%'
9292
- '%overblog_graphql.cache_dir%'

tests/Generator/TypeGeneratorTest.php

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

77
use Generator;
88
use Overblog\GraphQLBundle\Event\SchemaCompiledEvent;
9+
use Overblog\GraphQLBundle\Generator\Model\TypeGeneratorOptions;
910
use Overblog\GraphQLBundle\Generator\TypeBuilder;
1011
use Overblog\GraphQLBundle\Generator\TypeGenerator;
11-
use Overblog\GraphQLBundle\Generator\TypeGeneratorOptions;
1212
use PHPUnit\Framework\TestCase;
1313
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1414

0 commit comments

Comments
 (0)