-
Notifications
You must be signed in to change notification settings - Fork 265
[3.0] Manage third party libs via composer #8240
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
Conversation
21e27b0 to
f608581
Compare
live627
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested working. Normal forum operations still work as expected.
|
@MissAllSunday this is still marked as draft. You plan on more changes here? |
Nope, will mark it as ready and resolve the conflicts |
162f068 to
82a164c
Compare
|
Upon further testing, |
|
Not really sure, it has to do with this PR so it makes sense to include it here but it could also be a separate PR specially if this one doesn't get merged, up to you. Best of options would be include it here and also send it as a separate PR I suppose. |
|
I did a rebase from release-3.0 will take a look at this again |
3.0 is still in alpha so it will still be a while before it's ready for use on a production forum |
Probably just a spammer account, I wouldn't pay too much attention to it |
|
Abuse reported. Wildly inappropriate. First time I've seen anything like that on GH. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes to ./Sources/Autoloader.php will pollute the global namespace with several variables. Could you please wrap all of that code in a closure in order to keep it contained? The code in ./index.php for loading ./Settings.php would be a good model for this.
Moreover, with these changes, how does autoloading of our own classes work? Perhaps I am missing something, but it looks to me that by removing the call to spl_autoload_register() from ./Sources/Autoloader.php, this PR removes our ability to autoload our own classes.
|
@MissAllSunday, can you also ensure that the readme is updated with relevant information for those looking to start using the development version? Nothing fancy, I would add a bullet to the how to contribute section. |
|
How about this approach? essentially removing the Autoloader file and the need to call Integration classes and instead, add the autoloader logic inside the already established closure which already checks and loads all what we need for using composer's autoloader. Since autoloading happens quite early and its a special case, I don't think we need to fully load Integration class to handle it, I used the same approach we already used when loading integrate_pre_include hooks on Config. Regarding autoloading own classes, the SMF namespace was moved to composer's configuration, meaning all classes that has that namespace will still be autoloaded just like it was before this change. If there is a class that doesn't use the SMF namespace or lives outside its scope then it will have to be changed or its unique namespace to be added to composer's autoload setting |
remove more calls to code in sources folder
Co-authored-by: John Rayes <live627@gmail.com>
Co-authored-by: John Rayes <live627@gmail.com>
…eded files already happens
|
rebased against latest release-3.0 |
|
#8801 adds another library. So, figuring this out is becoming more important. Hopefully, we can get it tagged to a milestone. |
|
Figuring this out will be needed if we want psr interoperability.
…On Fri, Jul 25, 2025 at 2:24 PM Jeremy D ***@***.***> wrote:
*jdarwood007* left a comment (SimpleMachines/SMF#8240)
<#8240 (comment)>
#8801 <#8801> adds another
library. So, figuring this out is becoming more important. Hopefully, we
can get it tagged to a milestone.
—
Reply to this email directly, view it on GitHub
<#8240 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADJNN7XG34PC2PPL5BHNFL3KKOCHAVCNFSM6AAAAABITMPHWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCMRQGQYDQOJRGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Figuring this out as in there is still something to be resolved on this PR? |
|
As in, getting this assigned to a milestone; sorry for not being clear there. |
|
This branch and release-3.0 has diverged quite significantly so a rebase was causing a lot of problems, better start fresh so a new PR was submitted at: #9015 |
This is a simple POC for allowing SMF to handle their internal third party libraries via composer.
Some key features to take into consideration for this POC