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

Create DataStore facade #37

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from
Open

Conversation

ptrckvzn
Copy link
Member

@ptrckvzn ptrckvzn commented Feb 1, 2022

This PR creates a Facade DataStore. I changed the way the data sore loads its content. Instead of loading all files in data/*.php on init, it will try to load each file as they are requested, in order to be able to use the data store from within data files and prevent recursive loads.

The change to the data store should be optimized a bit further.

<?php

use A17\Blast\Facades\DataStore;

$tag = DataStore::get('tag.base');

return [
    'artwork' => [

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant