-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Doesn't install when using doctrine-module 3 #13
Comments
Post your composer.json |
"php": "^7.1", |
I can give suggestions but the luck is up to you. doctrine/doctrine-module 1.1.0 (from your first post) - hard code this to ^4.0 From my perspective not much work has happened in Apigilityland since the namespace change to Laminas. This apigility-doctrine project was mine. I actively build with it but I have not tried to move to Laminas so what you're doing may be pioneering. I'm on the Doctrine Project now and I released doctrine-module and doctrine-orm-module for Laminas. I'm about to release doctrine-mongodb-odm-module and I've submitted some PRs to the api-tools but haven't seen any movement on those PRs. |
that is actually what i did on our previous project but i was actually hoping that we can finally use the newer versions of the doctrine-module package. what do you think if i just make another project just for the API and another project for the laminas project itself.. so that i wouldn't have this kind of problem with packages.. what do you think? Thank you for the quick reply. |
Most of the changes in the Doctrine modules was to bring them to the standard of the Doctrine Coding Standard and composer changes to use Laminas. I did my best not to change anything except the hydrator; doctrine/doctrine-laminas-hydrator is the shiny new thing about the modules. So, if you don't have issues with the old hydrator then it is my opinion that you should stick with zfcampus until attention is turned to api-tools. As for an API project and Laminas project I think you're doing it all wrong. The obvious shines through first like managing Doctrine metadata files between projects but that's not the problem. The problem is you're not writing a front end in Angular or a similar tool. Your whole project should be only the API. Build your microservices first, not 3 iterations through multiple re-writes as is the trend. Building a front end application in Laminas or Mezzio is the wrong way to build a front end. You can do everything in the API you could imagine doing in Laminas or Mezzio except rendering content because that is the job of Angular (or whatever else like Angular). |
i actually use my API for our mobile app only so i am doing this approach. could there be a better approach? I really appreciate your insights on this. thanks! btw, thank you for the great contribution you had made for apigility and your modules are awesome. i hope i could find a way for this to work like i intend it to do.. i will be waiting for the time we can integrate the newer versions of doctrine with the api-tool.. keep it up! |
If you write an API: consume it! The same API call which returns a HAL-JSON response of a list of concerts to your phone is the same API which returns a list of concerts to your web site. I wrote etreedb.org in 1999 and I've made a multi-year project of moving it to an API. That API is https://api.etreedb.org I suggest you use that documentation built with Apigility in combination with the open source front end for the project to expand your knowledge of front end capabilities today. p.s. api.etreedb.org endpoints which do not require extra perms are open such as https://api.etreedb.org/source/1 https://search.etreedb.org code is here: https://github.com/etreedb/search |
right now the mobile app is the only one consuming the API.. but it would also be a waste if i wouldn't use the laminas-form and other laminas modules for the web.. that is why we built the website using laminas at the first place.. the API was just another feature to be able to create a mobile app and consume it. But i know someday we would be doing something like you said. |
I am trying to install this with my laminas project using doctrine but it seems to have some conflicts with installing..
The text was updated successfully, but these errors were encountered: