Skip to content

Commit e5fbfd1

Browse files
committed
Fixing Symfony 5.1 deprecations
1 parent 8102c4b commit e5fbfd1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Resources/config/container/graphqlite.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
<service id="TheCodingMachine\GraphQLite\AggregateControllerQueryProviderFactory">
3333
<argument type="collection">
3434
</argument>
35+
<argument type="service" id="service_container">
36+
</argument>
3537
<tag name="graphql.queryprovider_factory" />
3638
</service>
3739

@@ -103,7 +105,7 @@
103105
</argument>
104106
<tag name="graphql.type_mapper_factory"/>
105107
</service>
106-
108+
107109
<service id="graphqlite.phpfilescache" class="Symfony\Component\Cache\Adapter\PhpFilesAdapter">
108110
<argument>graphqlite</argument>
109111
</service>

Tests/GraphqliteTestingKernel.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler;
1313
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
1414
use Symfony\Component\HttpKernel\Kernel;
15+
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1516
use Symfony\Component\Routing\RouteCollectionBuilder;
1617
use TheCodingMachine\Graphqlite\Bundle\GraphqliteBundle;
1718
use Symfony\Component\Security\Core\User\User;
@@ -67,6 +68,10 @@ public function configureContainer(ContainerBuilder $c, LoaderInterface $loader)
6768
'app' => 'cache.adapter.array',
6869
];
6970

71+
$frameworkConf['router'] =[
72+
'utf8' => true,
73+
];
74+
7075
if ($this->enableSession) {
7176
$frameworkConf['session'] =[
7277
'enabled' => true,
@@ -136,7 +141,7 @@ public function configureContainer(ContainerBuilder $c, LoaderInterface $loader)
136141
$loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');
137142
}
138143

139-
protected function configureRoutes(RouteCollectionBuilder $routes)
144+
protected function configureRoutes(RoutingConfigurator $routes)
140145
{
141146
$routes->import(__DIR__.'/../Resources/config/routes.xml');
142147
}

0 commit comments

Comments
 (0)