Skip to content

Commit c5ed7e5

Browse files
Add basic SEAL User Interface
1 parent f4f85f8 commit c5ed7e5

File tree

19 files changed

+3055
-359
lines changed

19 files changed

+3055
-359
lines changed

.examples/symfony/composer.lock

Lines changed: 450 additions & 358 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: 86 additions & 1 deletion
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
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);

packages/seal-ui/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Alexander Schranz
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)