-
Notifications
You must be signed in to change notification settings - Fork 447
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
Replace pimple with laravel's dependency injection container #9913
Comments
I think this can be closed as a duplicate of #7131 |
@asmecher can you check the PRs at #9913 (comment). This simple PRs centralize all services to use the laravel container and remove pimple container . If all ok, I plan to remove all reference of |
Looks good, @touhidurabir, please go ahead! Also document any code changes that might be necessary for 3rd parties in the top comment, and add a link to it in #9276. |
it's ready for merge but I do not have write access to few plugins repo . Can you please merge it as it's better to have all merged at same time to avoid conflict . |
pkp/pkp-lib#9913 replaced depreciated Services::get with app()->get
pkp/pkp-lib#9913 replaced depreciated Services::get with app()->get
pkp/pkp-lib#9913 replaced depreciated Services::get with app()->get
All merged, thanks! Closing. |
Describe the proposal
There are some implementations in the codebase that use the Pimple for the purpose of dependency injection. This package is a part of micro framework Silex which as been deprecated quite some times ago. Also as we have laravel's own dependency injection container, it's better to use that as we are adopting more from laravel's toolset .
What application are you using?
OJS, OMP or OPS version main (3.5.0 pre release)
Additional information
Only few classes are using it such as
Probably a good approach is to utilize the app or shared lib(pkp-lib) specific
AppServiceProvider
to put the functionalities there .PRs
pkp-lib --> #10177
ojs --> pkp/ojs#4358
omp --> pkp/omp#1633
ops --> pkp/ops#728
crossref-ojs --> pkp/crossref-ojs#51
jatsTemplate --> pkp/jatsTemplate#45
oaiJats --> pkp/oaiJats#45
plagiarism --> pkp/plagiarism#61
crossref-ops --> pkp/crossref-ops#41
The text was updated successfully, but these errors were encountered: