Skip to content

Commit f00368d

Browse files
committed
Add stubs instead of moved models for backward compatibility
1 parent e1dc5a1 commit f00368d

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

src/Generator/Collection.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Overblog\GraphQLBundle\Generator;
6+
7+
use Overblog\GraphQLBundle\Generator\Model\Collection as BaseCollection;
8+
9+
@trigger_error(sprintf('Since overblog/graphql-bundle 0.14.4: Class \Overblog\GraphQLBundle\Generator\TypeGeneratorOptions is deprecated. Use %s instead of it.', BaseCollection::class), \E_USER_DEPRECATED);
10+
11+
/**
12+
* @deprecated Use {@see \Overblog\GraphQLBundle\Generator\Model\Collection }
13+
*/
14+
class Collection extends BaseCollection
15+
{
16+
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Overblog\GraphQLBundle\Generator;
6+
7+
use Overblog\GraphQLBundle\Generator\Model\TypeGeneratorOptions as BaseTypeGeneratorOptions;
8+
9+
@trigger_error(sprintf('Since overblog/graphql-bundle 0.14.4: Class \Overblog\GraphQLBundle\Generator\TypeGeneratorOptions is deprecated. Use %s instead of it.', BaseTypeGeneratorOptions::class), \E_USER_DEPRECATED);
10+
11+
/**
12+
* @deprecated Use {@see \Overblog\GraphQLBundle\Generator\Model\TypeGeneratorOptions }
13+
*/
14+
class TypeGeneratorOptions extends BaseTypeGeneratorOptions
15+
{
16+
17+
}

0 commit comments

Comments
 (0)