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

Fallback to default asset paths if themed assets not found #51

Merged
merged 1 commit into from
May 6, 2020

Conversation

pamil
Copy link
Contributor

@pamil pamil commented May 6, 2020

More like PoC to test with Sylius and BootstrapTheme - needs some rework before tagging v2.0 for sure :)

continue;
}

if (!file_exists($originDir . '/' . str_replace($targetDir, '', $relativePath))) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should create a map of assets during container compilation so that this whole foreach could be replaced with a map lookup.

@pamil pamil merged commit 6d525bc into Sylius:master May 6, 2020
@pamil pamil deleted the assets-fallback branch May 6, 2020 12:43
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