Coder Social home page Coder Social logo

Comments (50)

philipobenito avatar philipobenito commented on July 22, 2024

100% the plan once it's accepted 👍

from route.

codeguy avatar codeguy commented on July 22, 2024

Sweet. Good news. Feel free to close this out.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

Worth keeping open for clarification to others, I'll rename to reflect as a task

from route.

philipobenito avatar philipobenito commented on July 22, 2024

@codeguy would actually like your input re a middleware strategy if you'd be OK with me shooting you an email when I have a bit of time?

from route.

codeguy avatar codeguy commented on July 22, 2024

Sounds great! You can reach me at hello at joshlockhart dot com.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

Good man, thanks

from route.

philipobenito avatar philipobenito commented on July 22, 2024

Just another quick one, are you planning an implementation of PSR-7 for Slim 3? Obviously we'll be waiting a while for the Enterprises so if you are planning something, I'd give you a friendly nudge to make it a standalone package :-)

from route.

codeguy avatar codeguy commented on July 22, 2024

Yes Slim 3 will have PSR-7 messages objects. I should probably split that into a separate component for sure.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

Would be ideal for me, don't want to take the implementation on myself right now but obviously need to point to an implementation once I swap it out

from route.

hannesvdvreken avatar hannesvdvreken commented on July 22, 2024

@philipobenito about middleware strategy: I think stackphp will depend on PSR-7 instead of http foundation once it's out. So imo following stackphp would be a good move.

Instead of depending on an implementation of PSR-7, league/route should depend on psr/http-message.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

@hannesvdvreken PSR-7 === psr/http-message in this context, depending on the interfaces resulting from PSR-7. My point is that @codeguy is working on an implementation that I'd like to point to from a documentation perspective. Also I'm using Route heavily day to day so I'll need an implementation pretty quickly for my own use :-)

from route.

codeguy avatar codeguy commented on July 22, 2024

@hannesvdvreken Yep, we all have the same goal. Everything will be coded for PSR-7 interfaces and not particular implementation of such.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

That was always the aim with Route, ideally to write an application that was properly agnostic of it's framework/bootstrap, I want people to be able to move away from League\Route if they want to, and with the look of what @codeguy is doing with Slim 3, it would be minimal work to drop an app built on this router straight in to Slim and for it to work, first example of the FIG stuff working in the wild hopefully, which I'm kind of excited about.

from route.

codeguy avatar codeguy commented on July 22, 2024

@philipobenito I'm pretty sure I'm going to use Route in Slim 3... if it doesn't support PSR7 by release date, I'll just write a quick strategy for it.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

@codeguy that's fantastic news, if you need anything from me just shout, even if that be a specific tag for you to use until the PSR is official

from route.

codeguy avatar codeguy commented on July 22, 2024

@philipobenito Pushed an experimental branch for you to review that integrates League/Route. You'll want to look at these files specifically:

from route.

hannesvdvreken avatar hannesvdvreken commented on July 22, 2024

@philipobenito: 👌 pointing to an implementation from docs. We're on the same page then ;-)

from route.

philipobenito avatar philipobenito commented on July 22, 2024

All looks good @codeguy, I wrestled with the idea of catching not found etc within the strategy but settled on the opinion that it's better outside of there for the user to decide what to do. Will you be exposing the container or continuing with Pimple like it says in your blog post?

from route.

codeguy avatar codeguy commented on July 22, 2024

May as well move over to League/container to reduce dependencies.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

Ok so I'm planning a simplification of the API which will probably be much better for you, we can discuss what changes I have planned before release. Do you have a release date you're aiming for then I can aim to get v2 of both packages ready for then? Route won't be changing much at all, just the dependency change and a possible filesystem caching layer for defined routes so that it's not interacted with every request (this is something built in to FastRoute). Container again isn't gonna be changing in terms of functionality, just a big internal tidy up and improving the cohesiveness between features.

from route.

codeguy avatar codeguy commented on July 22, 2024

No hard release date yet.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

Ok, well I'll be starting my planned works the next couple of days and shouldn't take me too long so I'll keep you updated to public changes.

from route.

codeguy avatar codeguy commented on July 22, 2024

👍

from route.

codeguy avatar codeguy commented on July 22, 2024

@philipobenito Not sure if your changes will include this or not, but can you create a new tag/branch that does not have the Symfony HTTP Foundation dependency in composer.json? No immediate rush.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

Yeah, I'll create you a branch later tonight and alias a packagist tag to it then any specifics for Slim can be put in there

from route.

philipobenito avatar philipobenito commented on July 22, 2024

@codeguy hopefully this will help for now, http exceptions and and json responses will be broken for now but will fix that tomorrow 1f97cd5

from route.

codeguy avatar codeguy commented on July 22, 2024

@philipobenito After some experimentation, I've found it's going to be easier and cleaner to use FastRoute directly. However, I'm definitely going to extract the PSR-7 stuff into a separate component and do what I can to advertise and help league/route.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

@codeguy That makes sense based on what you're doing, look forward to the PSR-7 package though, aiming to get that implemented asap.

from route.

sagikazarmark avatar sagikazarmark commented on July 22, 2024

@codeguy @philipobenito are you sure that stackphp will rely on PSR-7? Because I heard other news. I was also thinking about creating a middleware package for PSR-7, because phly/conduit is not really what I imagine as the clone of stackphp.

In the meantime check phly/http which is a HTTP Message implementation created by the editor of the PSR.

from route.

sagikazarmark avatar sagikazarmark commented on July 22, 2024

Some update: PSR 7 is out. There are already a few implementations out there, the most sane ones:

They both provide the psr/http-message-implementation virtual package.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

@sagikazarmark v2 is due soon and will depend on the abstractions but not provide an implementation by default. It will simply suggest several alternatives and the documentation/skeleton applications will handle the implementation details.

from route.

sagikazarmark avatar sagikazarmark commented on July 22, 2024

The provided virtual package is great for both directly requiring or suggesting.

from route.

sagikazarmark avatar sagikazarmark commented on July 22, 2024

I would probably extract the PSR7 part from the main package and move it to a separate one so that you can require the virtual package instead of suggesting it.

from route.

ojhaujjwal avatar ojhaujjwal commented on July 22, 2024

I agree with @sagikazarmark about moving PSR7 implementation to a separate package!

from route.

shadowhand avatar shadowhand commented on July 22, 2024

@philipobenito do you want me to work on a PR for this?

from route.

philipobenito avatar philipobenito commented on July 22, 2024

It's actually already being worked on for v2, was waiting for the vote to pass before finalising but thank you.

Sent from my iPhone

On 21 May 2015, at 17:19, Woody Gilk [email protected] wrote:

@philipobenito do you want me to work on a PR for this?


Reply to this email directly or view it on GitHub.

from route.

shadowhand avatar shadowhand commented on July 22, 2024

@philipobenito when can we expect to see a branch?

from route.

dolfelt avatar dolfelt commented on July 22, 2024

@philipobenito Which implementations are being suggested going forward using PSR-7 with Route?

from route.

philipobenito avatar philipobenito commented on July 22, 2024

It will be completely up to the user which implementation is used but there will be a section in the docs to outline options.

Sent from my iPhone

On 21 May 2015, at 17:41, Daniel Olfelt [email protected] wrote:

@philipobenito Which implementations are being suggested going forward using PSR-7 with Route?


Reply to this email directly or view it on GitHub.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

Next 1-2 weeks

Sent from my iPhone

On 21 May 2015, at 17:37, Woody Gilk [email protected] wrote:

@philipobenito when can we expect to see a branch?


Reply to this email directly or view it on GitHub.

from route.

sagikazarmark avatar sagikazarmark commented on July 22, 2024

It seems that the complete replace of Symfony HttpFoundation might not be necessary:

http://symfony.com/blog/psr-7-support-in-symfony-is-here

To preserve compatibility (for example with Stack based applications, like Proton) this compatibility layer could be used.

For the record I suggest preserving compatibility next to the new, PSR-7 strategy which should be the recommended one.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

This has already been discussed on several threads and is being implemented for v2.

Sent from my iPhone

On 30 May 2015, at 21:04, Márk Sági-Kazár [email protected] wrote:

It seems that the complete replace of Symfony HttpFoundation might not be necessary:

http://symfony.com/blog/psr-7-support-in-symfony-is-here

To preserve compatibility (for example with Stack based applications, like Proton) this compatibility layer could be used.

For the record I suggest preserving compatibility next to the new, PSR-7 strategy which should be the recommended one.


Reply to this email directly or view it on GitHub.

from route.

sagikazarmark avatar sagikazarmark commented on July 22, 2024

Sorry, I didn't find any reference to symfony's compatibility layer. Also, it just have been released.

from route.

philipobenito avatar philipobenito commented on July 22, 2024

Less Symfony specific but the fact that strategies are going to be split out and HTTP Foundation will still be supported.

Sent from my iPhone

On 30 May 2015, at 21:33, Márk Sági-Kazár [email protected] wrote:

Sorry, I didn't find any reference to symfony's compatibility layer. Also, it just have been released.


Reply to this email directly or view it on GitHub.

from route.

alexbilbie avatar alexbilbie commented on July 22, 2024

Hey @philipobenito where are you with this? Am happy to help with this

from route.

philipobenito avatar philipobenito commented on July 22, 2024

Hey man. Already done, just got some changes to make to Container before I release, next week some time for both v2 releases.


Sent from Mailbox

On Fri, Jul 24, 2015 at 6:28 PM, Alex Bilbie [email protected]
wrote:

Hey @philipobenito where are you with this? Am happy to help with this

Reply to this email directly or view it on GitHub:
#32 (comment)

from route.

alexbilbie avatar alexbilbie commented on July 22, 2024

❤️

from route.

mwillbanks avatar mwillbanks commented on July 22, 2024

@philipobenito any chance of creating a branch with some of this so that it can be exposed and some of us can start testing it?

from route.

sagikazarmark avatar sagikazarmark commented on July 22, 2024

👍 I am also curious about new features.

from route.

hannesvdvreken avatar hannesvdvreken commented on July 22, 2024

+1

from route.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.