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

Improve support for running HydePHP through the Phar archive #1491

Merged
merged 4 commits into from
Dec 12, 2023

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Dec 12, 2023

Changes

These will fix hydephp/cli#49, as well as other probable compatibility issues in that repo.

Update PharSupport vendor path method to support more packages

Removes the requirement that the vendor package is framework and updates the resolver to handle other Hyde packages.

Update path helper to not format Phar paths

This should resolve a lot of the issues we're having with the standalone, due to Phar paths being formatted like 'H:\monorepo/phar://foo', when they should be unchanged ('phar://foo')

Update dashboard to load scripts from Phar

Update dashboard to inject scripts directly from archive when running in Phar

@caendesilva caendesilva changed the title Update PharSupport vendor path method to support more packages Improve support for running HydePHP through a Phar archive Dec 12, 2023
@caendesilva caendesilva changed the title Improve support for running HydePHP through a Phar archive Improve support for running HydePHP through the Phar archive Dec 12, 2023
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b882bf2) 100.00% compared to head (628b628) 100.00%.
Report is 2 commits behind head on master.

❗ Current head 628b628 differs from pull request most recent head b470292. Consider uploading reports for the commit b470292 to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##              master     #1491     +/-   ##
=============================================
  Coverage     100.00%   100.00%             
- Complexity      1740      3480   +1740     
=============================================
  Files            180       360    +180     
  Lines           4715      9430   +4715     
=============================================
+ Hits            4715      9430   +4715     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This should resolve a lot of the issues we're having with the standalone, due to Phar paths being formatted like `'H:\monorepo/phar://foo'`, when they should be unchanged (`'phar://foo'`)
Update dashboard to inject scripts directly from archive when running in Phar
@caendesilva caendesilva marked this pull request as ready for review December 12, 2023 16:51
@caendesilva caendesilva merged commit e361c3e into master Dec 12, 2023
15 checks passed
@caendesilva caendesilva deleted the improve-phar-support branch December 12, 2023 16:55
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.

Dashboard not working through standalone
1 participant