Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Schema Php File Loader #117

Merged
merged 1 commit into from
Feb 24, 2023
Merged

Add Schema Php File Loader #117

merged 1 commit into from
Feb 24, 2023

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Feb 24, 2023

As part of the Framework integration #113 and providing formats #115. We first implement the PhpFileLoader to load a Index Schema directly from a .php file:

<?php

use Schranz\Search\SEAL\Schema\Field;
use Schranz\Search\SEAL\Schema\Index;

return new Index('blog', [
    'id' => new Field\IdentifierField('id'),
    'title' => new Field\TextField('title'),
    'description' => new Field\TextField('description'),
]);

@alexander-schranz alexander-schranz added the SEAL Core Seal Core related issue label Feb 24, 2023
@alexander-schranz alexander-schranz merged commit 77fe453 into 0.1 Feb 24, 2023
@alexander-schranz alexander-schranz deleted the feature/schema-loader branch February 24, 2023 00:41
@alexander-schranz alexander-schranz changed the title Add Schema File Loader Add Schema Php File Loader Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SEAL Core Seal Core related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant