Skip to content

Commit

Permalink
remove deprecation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bpteam committed Jan 29, 2022
1 parent efe6200 commit 8d89c32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/CacheWarmer/SchemaCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public function __construct(
$this->codeGeneratorBuilder = $codeGeneratorBuilder;
}

public function isOptional()
public function isOptional(): bool
{
return false;
}

public function warmUp(string $cacheDir)
public function warmUp(string $cacheDir): array
{
$classes = [];
$schema = SchemaBuilder::build($this->schemaFiles);
Expand Down
8 changes: 2 additions & 6 deletions src/DependencyInjection/FlexibleGraphqlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Axtiva\FlexibleGraphql\Builder\TypeRegistryGeneratorBuilderInterface;
use Axtiva\FlexibleGraphql\Federation\Resolver\Foundation\Query\_EntitiesResolver;
use Axtiva\FlexibleGraphql\Federation\Resolver\Foundation\Query\_ServiceResolver;
use Axtiva\FlexibleGraphql\FederationExtension\FederationSchemaExtender;
use Axtiva\FlexibleGraphql\Generator\Config\CodeGeneratorConfigInterface;
use Axtiva\FlexibleGraphql\Generator\Config\FieldResolverGeneratorConfigInterface;
use Axtiva\FlexibleGraphql\Generator\Config\Foundation\Psr4\CodeGeneratorConfig;
Expand All @@ -28,17 +27,14 @@
use Axtiva\FlexibleGraphql\Resolver\ResolverInterface;
use Axtiva\FlexibleGraphql\Resolver\UnionResolveTypeInterface;
use Axtiva\FlexibleGraphql\Federation\Resolver\FederationRepresentationResolverInterface;
use Axtiva\FlexibleGraphql\Utils\SchemaBuilder;
use Axtiva\FlexibleGraphqlBundle\CacheWarmer\SchemaCacheWarmer;
use Axtiva\FlexibleGraphqlBundle\Command\GenerateDirectiveResolverCommand;
use Axtiva\FlexibleGraphqlBundle\Command\GenerateFieldResolverCommand;
use Axtiva\FlexibleGraphqlBundle\Command\GenerateScalarResolverCommand;
use Axtiva\FlexibleGraphqlBundle\Command\GenerateTypeRegistryCommand;
use GraphQL\Language\Printer;
use ReflectionClass;
use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Extension\Extension;
Expand All @@ -58,7 +54,7 @@ class FlexibleGraphqlExtension extends Extension implements CompilerPassInterfac

private array $config;

public function getConfiguration(array $config, ContainerBuilder $container)
public function getConfiguration(array $config, ContainerBuilder $container): ?ConfigurationInterface
{
return new Configuration();
}
Expand Down

0 comments on commit 8d89c32

Please sign in to comment.