Skip to content

Commit

Permalink
Add basic SEAL User Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Sep 23, 2024
1 parent 15f7024 commit df3cf35
Show file tree
Hide file tree
Showing 19 changed files with 3,106 additions and 410 deletions.
842 changes: 467 additions & 375 deletions .examples/symfony/composer.lock

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .examples/symfony/config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ controllers:
path: ../src/Controller/
namespace: App\Controller
type: attribute

seal_ui:
controller: schranz_search.seal_ui_controller
path: /seal-ui
1 change: 1 addition & 0 deletions integrations/symfony/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"require": {
"php": "^8.1",
"schranz-search/seal": "^0.5",
"schranz-search/seal-ui": "^0.5",
"symfony/config": "^6.1 || ^7.0",
"symfony/console": "^6.1 || ^7.0",
"symfony/dependency-injection": "^6.1 || ^7.0",
Expand Down
155 changes: 120 additions & 35 deletions integrations/symfony/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions integrations/symfony/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,22 @@
use Schranz\Search\SEAL\Adapter\Solr\SolrAdapterFactory;
use Schranz\Search\SEAL\Adapter\Typesense\TypesenseAdapterFactory;
use Schranz\Search\SEAL\EngineRegistry;
use Schranz\Search\SEAL\UI\Controller\SealUiController;

/*
* @internal
*/
return static function (ContainerConfigurator $container) {
// -------------------------------------------------------------------//
// Controllers //
// -------------------------------------------------------------------//
$container->services()
->set('schranz_search.seal_ui_controller', SealUiController::class)
->args([
service('schranz_search.engine_registry'),
])
->public();

// -------------------------------------------------------------------//
// Commands //
// -------------------------------------------------------------------//
Expand Down
8 changes: 8 additions & 0 deletions packages/seal-ui/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.gitattributes export-ignore
.gitignore export-ignore
composer.lock export-ignore
/tests export-ignore
phpunit.xml.dist export-ignore
.php-cs-fixer.dist.php export-ignore
phpstan.neon export-ignore
rector.php export-ignore
2 changes: 2 additions & 0 deletions packages/seal-ui/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [alexander-schranz]
custom: ["https://paypal.me/L91"]
9 changes: 9 additions & 0 deletions packages/seal-ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/vendor/
/composer.phar
/phpunit.xml
/.phpunit.cache
/tests/var
/docker-compose.override.yml
/.php-cs-fixer.php
/.php-cs-fixer.cache
/phpstan.neon
13 changes: 13 additions & 0 deletions packages/seal-ui/.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

$phpCsConfig = require(dirname(__DIR__, 2) . '/.php-cs-fixer.dist.php');

$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->ignoreVCSIgnored(true);

$phpCsConfig->setFinder($finder);

return $phpCsConfig->setFinder($finder);
Loading

0 comments on commit df3cf35

Please sign in to comment.