-
-
Notifications
You must be signed in to change notification settings - Fork 12
[2.x] Normalize media path helpers to unify naming with HydePages #1911
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
Merged
emmadesilva
merged 20 commits into
normalize-the-asset-api
from
normalize-media-path-helpers
Jul 26, 2024
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
9edfe94
Refactor test to be a unit test
emmadesilva b6eed88
Draft new mediaPath helper
emmadesilva ccca1d7
Draft new siteMediaPath helper
emmadesilva b6a1269
Inline kernel access
emmadesilva ecd98db
Rename added methods to match HydePage siblings
emmadesilva beaf511
Refactor base implementations to be class independent
emmadesilva 9aa1f66
Move method logic to new code location
emmadesilva 5863d03
Reorder methods to match sibling order
emmadesilva a60e91b
Move tests to match new code locations
emmadesilva 8cfe0cd
Add todos to move more tests to match new code locations
emmadesilva 89d0e52
Create new internal trait for transitioning to v2
emmadesilva 4091051
Ignore class from code coverage
emmadesilva 2004a4e
Revert "Ignore class from code coverage"
emmadesilva 650d5a7
Manually proxy and deprecate legacy facade methods
emmadesilva 8228d7a
Set the parameters list
emmadesilva 2e96631
Alias the MediaFile class
emmadesilva bbe66f4
Update deprecated method usages with new helpers
emmadesilva 74059a5
Remove inconsistent infix from internal helper methods
emmadesilva 678b6f7
Reapply "Ignore class from code coverage"
emmadesilva 4647333
Move the tests to the new code location
emmadesilva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Hyde\Support; | ||
|
|
||
| use JetBrains\PhpStorm\Deprecated; | ||
| use Hyde\Support\Filesystem\MediaFile; | ||
|
|
||
| /** | ||
| * @internal Hyde Facade support to aid in the v1 to v2 transition. | ||
| * | ||
| * @deprecated All code here is deprecated, and exists to help you transition. | ||
| * | ||
| * @codeCoverageIgnore This class is ignored from code coverage. | ||
| */ | ||
| trait V1Compatibility | ||
| { | ||
| /** | ||
| * @deprecated Use MediaFile::sourcePath() instead. | ||
| * @see \Hyde\Support\Filesystem\MediaFile::sourcePath() | ||
| */ | ||
| #[Deprecated(reason: 'Use MediaFile::sourcePath() instead', replacement: '\Hyde\Support\Filesystem\MediaFile::sourcePath(%parametersList%)')] | ||
| public static function mediaPath(string $path = ''): string | ||
| { | ||
| return MediaFile::sourcePath($path); | ||
| } | ||
|
|
||
| /** | ||
| * @deprecated Use MediaFile::outputPath() instead. | ||
| * @see \Hyde\Support\Filesystem\MediaFile::outputPath() | ||
| */ | ||
| #[Deprecated(reason: 'Use MediaFile::outputPath() instead', replacement: '\Hyde\Support\Filesystem\MediaFile::outputPath(%parametersList%)')] | ||
| public static function siteMediaPath(string $path = ''): string | ||
| { | ||
| return MediaFile::outputPath($path); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.