Skip to content

Commit df3cf35

Browse files
Add basic SEAL User Interface
1 parent 15f7024 commit df3cf35

File tree

19 files changed

+3106
-410
lines changed

19 files changed

+3106
-410
lines changed

.examples/symfony/composer.lock

Lines changed: 467 additions & 375 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.examples/symfony/config/routes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ controllers:
33
path: ../src/Controller/
44
namespace: App\Controller
55
type: attribute
6+
7+
seal_ui:
8+
controller: schranz_search.seal_ui_controller
9+
path: /seal-ui

integrations/symfony/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"require": {
4848
"php": "^8.1",
4949
"schranz-search/seal": "^0.5",
50+
"schranz-search/seal-ui": "^0.5",
5051
"symfony/config": "^6.1 || ^7.0",
5152
"symfony/console": "^6.1 || ^7.0",
5253
"symfony/dependency-injection": "^6.1 || ^7.0",

integrations/symfony/composer.lock

Lines changed: 120 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integrations/symfony/config/services.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,22 @@
2929
use Schranz\Search\SEAL\Adapter\Solr\SolrAdapterFactory;
3030
use Schranz\Search\SEAL\Adapter\Typesense\TypesenseAdapterFactory;
3131
use Schranz\Search\SEAL\EngineRegistry;
32+
use Schranz\Search\SEAL\UI\Controller\SealUiController;
3233

3334
/*
3435
* @internal
3536
*/
3637
return static function (ContainerConfigurator $container) {
38+
// -------------------------------------------------------------------//
39+
// Controllers //
40+
// -------------------------------------------------------------------//
41+
$container->services()
42+
->set('schranz_search.seal_ui_controller', SealUiController::class)
43+
->args([
44+
service('schranz_search.engine_registry'),
45+
])
46+
->public();
47+
3748
// -------------------------------------------------------------------//
3849
// Commands //
3950
// -------------------------------------------------------------------//

packages/seal-ui/.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.gitattributes export-ignore
2+
.gitignore export-ignore
3+
composer.lock export-ignore
4+
/tests export-ignore
5+
phpunit.xml.dist export-ignore
6+
.php-cs-fixer.dist.php export-ignore
7+
phpstan.neon export-ignore
8+
rector.php export-ignore

packages/seal-ui/.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: [alexander-schranz]
2+
custom: ["https://paypal.me/L91"]

packages/seal-ui/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/vendor/
2+
/composer.phar
3+
/phpunit.xml
4+
/.phpunit.cache
5+
/tests/var
6+
/docker-compose.override.yml
7+
/.php-cs-fixer.php
8+
/.php-cs-fixer.cache
9+
/phpstan.neon
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
$phpCsConfig = require(dirname(__DIR__, 2) . '/.php-cs-fixer.dist.php');
6+
7+
$finder = (new PhpCsFixer\Finder())
8+
->in(__DIR__)
9+
->ignoreVCSIgnored(true);
10+
11+
$phpCsConfig->setFinder($finder);
12+
13+
return $phpCsConfig->setFinder($finder);

0 commit comments

Comments
 (0)