Move TwitterOAuth to Composer : part 2b #510
No reviewers
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
dependencies
Hackathon 2021
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#510
Loading…
Reference in a new issue
No description provided.
Delete branch "task/4116-move-twitteroauth-to-composer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of https://github.com/friendica/friendica/issues/4116
Redux of #508
Follow-up to #505
An error suppression operator cost @annando and me a ton of time to find the error.
In the end I found the issue and I had to add a condition to include OAUth1.php in two different addons. Previously, the collision was managed not on the class name level, but on the file path level through
require_once
.This would have greatly benefitted from an autoloader, but the ship has sailed for addons.
Why is the ship sailed? Is there no way to have two autoloaders for the addons?
@tobiasd Oh no it’s possible, but I’m personally reluctant because:
twitter
add-on.I still have a last task I want to try though, by converting the venerable and ubiquitous
OAuth1.php
to classes that can be autoloaded. Since it’s used by the main site, addons could piggy-back off it without having to include a copy in their respective folders.Ah - ok. Thankis for the explanation!