Skip to content

Commit e439823

Browse files
committed
prepare release
1 parent 6b72d28 commit e439823

File tree

21 files changed

+57
-200
lines changed

21 files changed

+57
-200
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"doctrine/dbal": "^4.0",
1515
"psr/cache": "^3.0",
1616
"psr/container": "^2.0",
17+
"psr/log": "^2.0|^3.0",
1718
"symfony/cache": "^7.0",
1819
"symfony/config": "^7.0",
1920
"symfony/dependency-injection": "^7.0",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/RunOpenCode/Bundle/MetadataBundle/composer.json

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
],
1111
"require": {
12-
"runopencode/metadata": "^0.2",
12+
"runopencode/metadata": "^0.1.25",
1313
"php": ">=8.4",
1414
"psr/cache": "^3.0",
1515
"symfony/http-kernel": "^7.0",
@@ -22,36 +22,6 @@
2222
"RunOpenCode\\Bundle\\MetadataBundle\\": "src/"
2323
}
2424
},
25-
"repositories": [
26-
{
27-
"type": "path",
28-
"url": "../../Component/Dataset",
29-
"options": {
30-
"symlink": false
31-
}
32-
},
33-
{
34-
"type": "path",
35-
"url": "../../Component/Query",
36-
"options": {
37-
"symlink": false
38-
}
39-
},
40-
{
41-
"type": "path",
42-
"url": "../../Component/Metadata",
43-
"options": {
44-
"symlink": false
45-
}
46-
},
47-
{
48-
"type": "path",
49-
"url": "../../Bundle/QueryBundle",
50-
"options": {
51-
"symlink": false
52-
}
53-
}
54-
],
55-
"version": "0.2",
25+
"version": "0.1.25",
5626
"minimum-stability": "dev"
5727
}

src/RunOpenCode/Bundle/QueryBundle/composer.json

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,50 +9,23 @@
99
}
1010
],
1111
"require": {
12-
"runopencode/query": "^0.2",
12+
"runopencode/query": "^0.1.25",
1313
"php": ">=8.4",
1414
"psr/cache": "^3.0",
15+
"psr/container": "^2.0",
16+
"psr/log": "^2.0|^3.0",
1517
"symfony/config": "^7.0",
1618
"symfony/dependency-injection": "^7.0",
1719
"symfony/finder": "^7.0",
1820
"symfony/http-kernel": "^7.0",
19-
"twig/twig": "^3.0"
21+
"twig/twig": "^3.0",
22+
"thecodingmachine/safe": "^3.3"
2023
},
2124
"autoload": {
2225
"psr-4": {
2326
"RunOpenCode\\Bundle\\QueryBundle\\": "src/"
2427
}
2528
},
26-
"repositories": [
27-
{
28-
"type": "path",
29-
"url": "../../Component/Dataset",
30-
"options": {
31-
"symlink": false
32-
}
33-
},
34-
{
35-
"type": "path",
36-
"url": "../../Component/Query",
37-
"options": {
38-
"symlink": false
39-
}
40-
},
41-
{
42-
"type": "path",
43-
"url": "../../Component/Metadata",
44-
"options": {
45-
"symlink": false
46-
}
47-
},
48-
{
49-
"type": "path",
50-
"url": "../../Bundle/MetadataBundle",
51-
"options": {
52-
"symlink": false
53-
}
54-
}
55-
],
56-
"version": "0.2",
29+
"version": "0.1.25",
5730
"minimum-stability": "dev"
5831
}

src/RunOpenCode/Bundle/QueryBundle/config/definition/bundle.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
->ifArray()
2626
->then(static function(array $paths): array {
2727
$normalized = [];
28-
28+
2929
/**
3030
* @var string|int $path
3131
* @var string $namespace
@@ -36,15 +36,15 @@
3636
$path = $namespace;
3737
$namespace = null;
3838
}
39-
39+
4040
$normalized[$path] = $namespace;
4141
}
42-
42+
4343
return $normalized;
4444
})
4545
->end()
4646
->prototype('variable')->end()
4747
->end()
48-
48+
4949
->end();
5050
};

src/RunOpenCode/Bundle/QueryBundle/config/definition/middleware.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
88

99
return static function(DefinitionConfigurator $definition): void {
10-
$assertCatchable = static function (?array $value): bool {
10+
$assertCatchable = static function(?array $value): bool {
1111
if (null === $value) {
1212
return true;
1313
}
@@ -22,7 +22,7 @@
2222

2323
return true;
2424
};
25-
25+
2626
// @phpstan-ignore-next-line
2727
$definition
2828
->rootNode()
@@ -80,7 +80,7 @@
8080
->children()
8181
->scalarNode('logger')
8282
->defaultNull()
83-
->end()
83+
->end()
8484
->scalarNode('level')
8585
->defaultValue(LogLevel::ERROR)
8686
->end()

src/RunOpenCode/Bundle/QueryBundle/config/definition/parser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
if (\str_starts_with($v, '@@')) {
7171
return \substr($v, 1);
7272
}
73-
73+
7474
return ['id' => \substr($v, 1), 'type' => 'service'];
7575
})
7676
->end()
@@ -79,10 +79,10 @@
7979
if (\is_array($v)) {
8080
$keys = \array_keys($v);
8181
\sort($keys);
82-
82+
8383
return $keys !== ['id', 'type'] && $keys !== ['value'];
8484
}
85-
85+
8686
return true;
8787
})
8888
->then(fn($v) => ['value' => $v])

src/RunOpenCode/Bundle/QueryBundle/config/services/executor.php

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

3232
$configurator
3333
->alias(ExecutorInterface::class, Executor::class);
34-
34+
3535
$configurator
3636
->alias('runopencode.query', Executor::class);
3737
};

src/RunOpenCode/Bundle/QueryBundle/config/services/middleware.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use RunOpenCode\Component\Query\Parser\ParserRegistry;
1212
use RunOpenCode\Component\Query\Retry\RetryMiddleware;
1313
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
14+
1415
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
1516

1617
return static function(ContainerConfigurator $container): void {
@@ -39,13 +40,13 @@
3940
->tag('runopencode.query.middleware', [
4041
'alias' => 'retry',
4142
]);
42-
43+
4344
$configurator
4445
->set(SlowExecutionMiddleware::class)
4546
->tag('runopencode.query.middleware', [
4647
'alias' => 'slow',
4748
]);
48-
49+
4950
$configurator
5051
->set(ExecutorMiddleware::class)
5152
->arg('$registry', service(AdapterRegistry::class))

src/RunOpenCode/Bundle/QueryBundle/src/DependencyInjection/CompilerPass/ConfigureFileParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
/**
1414
* @phpstan-type FileParserConfig = array{
15-
* pattern: list<non-empty-string>,
15+
* pattern: list<non-empty-string>,
1616
* paths: list<array{non-empty-string, non-empty-string}>,
1717
* }
1818
*/
@@ -33,7 +33,7 @@ public function process(ContainerBuilder $container): void
3333

3434
/** @var FileParserConfig $configuration */
3535
$configuration = $container->getParameter('.runopencode.query.configuration.parser.file');
36-
36+
3737
$container
3838
->getDefinition(FileParser::class)
3939
->setArgument('$paths', $configuration['paths'])

0 commit comments

Comments
 (0)