Skip to content

Commit 783018e

Browse files
author
Jeremiah VALERIE
committed
Fix version and remove useless property
1 parent 937f293 commit 783018e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ class Configuration implements ConfigurationInterface
3232
public const NAME = 'overblog_graphql';
3333

3434
private bool $debug;
35-
private ?string $cacheDir;
3635

3736
/**
3837
* @param bool $debug Whether to use the debug mode
3938
*/
40-
public function __construct(bool $debug, string $cacheDir = null)
39+
public function __construct(bool $debug)
4140
{
42-
$this->debug = (bool) $debug;
43-
$this->cacheDir = $cacheDir;
41+
$this->debug = $debug;
4442
}
4543

4644
public function getConfigTreeBuilder(): TreeBuilder
@@ -211,7 +209,7 @@ private function definitionsSchemaSection(): ArrayNodeDefinition
211209
if (Kernel::VERSION_ID >= 50100) {
212210
$deprecatedArgs = [
213211
'overblog/graphql-bundle',
214-
'1.0',
212+
'0.13',
215213
'The "%path%.%node%" configuration is deprecated and will be removed in 1.0. Add the "overblog_graphql.resolver_map" tag to the services instead.',
216214
];
217215
} else {

src/DependencyInjection/OverblogGraphQLExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ public function getConfiguration(array $config, ContainerBuilder $container): Co
7070
{
7171
return new Configuration(
7272
// @phpstan-ignore-next-line
73-
$container->getParameter('kernel.debug'),
74-
// @phpstan-ignore-next-line
75-
$container->hasParameter('kernel.cache_dir') ? $container->getParameter('kernel.cache_dir') : null
73+
$container->getParameter('kernel.debug')
7674
);
7775
}
7876

0 commit comments

Comments
 (0)