| 2014-09-29 |
| ← kil0byte left | 00:05 |
| → netzmacht joined | 06:00 |
| → Websoftwarez joined | 06:29 |
| ← Websoftwarez left | 06:29 |
| → Websoftwarez joined | 06:29 |
|
Websoftwarez
| Morning | 06:31 |
| → kil0byte joined | 09:09 |
| → lenton joined | 09:11 |
| → wdna joined | 11:31 |
| ← wdna left | 11:49 |
| ← netzmacht left | 11:58 |
| → netzmacht joined | 12:04 |
| ← netzmacht left | 12:17 |
| → netzmacht joined | 12:19 |
|
Websoftwarez
| So using Aura Router v2 how would I set a route match on a query parameter | 12:25 |
| → wdna joined | 12:56 |
| ← wdna left | 12:59 |
| → wdna joined | 13:01 |
| → dragonmantank joined | 13:24 |
| → mfrost503 joined | 13:27 |
| ← wdna left | 13:47 |
| → joelclermont joined | 13:52 |
|
jwoodcock_
| Websoftwarez: example of your uri? | 13:58 |
| → jakefolio joined | 14:39 |
|
Websoftwarez
| jwoodcock_, | 15:16 |
|
| index.php?content=clienten/compliancy®io=234&jaar=2014 | 15:16 |
|
| index.php?content=clienten/compliancy&jaar=2014®io=234 | 15:16 |
|
| index.php?content=clienten/compliancy&maand=234&jaar=2014 | 15:17 |
|
| index.php?content=clienten/compliancy&afdeling=2014®io=234 | 15:17 |
|
| So I have these urls in a legacy situation where i cannot rewrite all of this | 15:17 |
|
jwoodcock_
| Websoftwarez: as far as I know you would have to do a match against the GET / and push it to a parser method that looks at the query string and then routes to another class from there. | 15:18 |
|
| I don't know of a router that can match based on query. | 15:18 |
|
Websoftwarez
| Yea, this is already what i was thinking | 15:18 |
|
| No classes available in that part of the system | 15:19 |
|
| So u mean match the get and include. | 15:19 |
|
| :) | 15:20 |
|
jwoodcock_
| I think so. | 15:21 |
|
| do a $query = $this->request->query->all(); | 15:22 |
|
| then do conditionals on if (content === '') { | 15:22 |
|
| and if a match call the object | 15:22 |
|
Websoftwarez
| include file :) | 15:22 |
|
| i mean no objects | 15:22 |
|
jwoodcock_
| well, I'd try to at least get the file into the DI | 15:22 |
|
| that way you can lazy load it, b | 15:22 |
|
| ut an include works. | 15:22 |
|
Websoftwarez
| Yea will try playing with it | 15:23 |
|
jwoodcock_
| cool. | 15:23 |
|
Websoftwarez
| Another idea to target this (not sure if this would be possible) , is to rewrite the uri with .htaccess redirect over index so i can route it | 15:30 |
|
jwoodcock_
| can, but that puts a dependency on env setup | 15:34 |
| ← jakefolio left | 15:34 |
|
Websoftwarez
| Need to see what works best for this specific part of the system | 15:35 |
|
| I'll have a swing tomorrow :) | 15:36 |
|
| bye going home! | 15:36 |
| ← kil0byte left | 15:39 |
| → pmjones joined | 15:48 |
| → jakefolio joined | 15:53 |
|
pmjones
| greetings all! | 15:54 |
|
| Thanks, Davey, for the PR on Aura.Access | 15:54 |
|
Davey
| pmjones: no problem :) | 15:54 |
|
pmjones
| hi lenton nice to see you | 15:54 |
|
Davey
| at first I thought you'd made the same mistake most make, and then saw you hadn't and was delighted | 15:54 |
|
pmjones
| well hell, man, you wrote the damn code :-) | 15:55 |
|
Davey
| it's *so* easy to read that part of the RFC incorrectly, it's so terribly written | 15:55 |
|
pmjones
| so of course it was easy -- you got it right in the first place ;-) | 15:55 |
|
lenton
| pmjones: Hi | 15:58 |
|
Davey
| pmjones: wait, I wrote the code? | 16:03 |
|
pmjones
| yeah man, see the logs -- you did a ton of work on Aura\Web\Request\Accept, from which this is extracted | 16:04 |
|
| you were unhappy about some edge cases and Wanted Them Done Right | 16:04 |
|
Davey
| hahaha, I don't even remember that :P | 16:04 |
|
pmjones
| here's one bit | 16:05 |
|
| https://github.com/pmjones/Aura.Accept/commit/180a3a32d71b34369284985c128910a78f33ce0d | 16:05 |
|
Davey
| HAH | 16:06 |
|
pmjones
| then i split it up and refactored | 16:06 |
|
| blah blah blah | 16:06 |
| ← netzmacht left | 16:32 |
| → kil0byte joined | 16:42 |
| ← mfrost503 left | 17:00 |
| → harikt joined | 17:11 |
|
harikt
| Hi all | 17:11 |
|
pmjones
| hey there harikt | 17:11 |
|
harikt
| Just reading the logs came to say hi :) | 17:11 |
|
| nice seeing you pmjones | 17:11 |
|
| You love Access than Accept I guess ;) . | 17:11 |
|
pmjones
| nice to see you too | 17:11 |
|
harikt
| busy days :) | 17:12 |
|
pmjones
| well, Accept being "only" an extraction, it seems more achievable | 17:12 |
|
harikt
| pmjones, I was telling about the typo you wrote :) . | 17:13 |
|
| http://colabti.org/irclogger/irclogger_log/auraphp?date=2014-09-29#l58 | 17:13 |
|
pmjones
| oh heh :-) | 17:13 |
|
harikt
| ;) | 17:13 |
|
| and probably Davey have contributed a lot he don't even remember ;) | 17:13 |
|
| thanks for your work Davey . | 17:14 |
|
pmjones
| that seems to be the case | 17:14 |
|
harikt
| Hi there simensen :) | 17:14 |
|
| Hope your conference was awesome ! | 17:14 |
|
| pmjones, it seems to me you are looking to push the final version of 2.0 soon. | 17:15 |
|
pmjones
| harikt: yes, i think we are getting very close now | 17:15 |
|
harikt
| when I see you closing the issues, I can figure out ;) . | 17:16 |
|
pmjones
| pull Accept from Web, let all the libs go to 2.0 stable, and then the kernels and projects can go to 2.0 stable | 17:16 |
|
| harikt: heh | 17:16 |
|
harikt
| :) | 17:16 |
|
pmjones
| Aura is mostly on weekends now that i have a real job | 17:16 |
|
| so i have to do it in batches even more so than usual | 17:17 |
|
harikt
| pmjones, understood. | 17:17 |
|
pmjones
| hey, if you can track down that Aura.Http error, that will help a lot | 17:17 |
|
| i'd like to close that out | 17:17 |
|
harikt
| Hm, that was one of the hardest one I didn't figured out. | 17:17 |
|
| will see what I can do though. | 17:17 |
|
| pmjones nod | 17:18 |
|
pmjones
| whatever you can do, that you have time for :-) | 17:18 |
|
harikt
| sure. will see :-) . | 17:19 |
|
| pmjones, I still have a question you answered a lot . But seeing the latest discussion ... will aura will get a middle ware ? | 17:21 |
|
pmjones
| unlikely | 17:21 |
|
| middleware is "one way of doing things" | 17:21 |
|
| i know you love the idea :-) | 17:22 |
|
harikt
| It seems like a nice idea. | 17:22 |
|
pmjones
| and if you wanted to, say, write a dispatcher that incorporates middleware implementations, i'd tell you to go right ahead :-) | 17:22 |
|
harikt
| handle(Request, Response) especially when the PSR-7 is ready. | 17:22 |
|
pmjones
| but i am not interested in middleware layers at this point | 17:22 |
|
harikt
| :) | 17:23 |
|
| pmjones, I did tried to write something . But not sure whether this is the right way to go with middleware though | 17:25 |
|
| https://github.com/harikt/middleware-experiments/blob/master/src/Kernel.php#L31-L56 | 17:25 |
|
pmjones
| harikt: i do not know enough to say :-/ | 17:26 |
|
harikt
| it uses phly/http . | 17:26 |
|
| ok, no problem. | 17:26 |
|
pmjones
| although it seems like a do/while instead of a foreach would make sense | 17:26 |
|
| so that each middleware could return a "stop" code or something | 17:27 |
|
harikt
| ok. | 17:27 |
|
| pmjones shrugs | 17:27 |
|
harikt
| anyway it was a nice try with the phly/http | 17:28 |
|
| https://github.com/harikt/middleware-experiments/blob/master/web/index.php#L7-L35 | 17:28 |
|
| some issues I found where we were unable to set the params from the router back to request. | 17:28 |
|
| not sure whether that needs to be addressed in PSR-7 | 17:28 |
|
pmjones
| i think PSR-7 does not have enough to it, for these purposes | 17:29 |
|
| for a plain old "PHP sends a request to a remote API and gets a response back" it seems fine | 17:29 |
|
| but for managing an incoming Request? i don't think so, not yet. | 17:30 |
|
| and now i must step away | 17:30 |
|
| if i don't see you harikt, sleep well :-) | 17:30 |
|
harikt
| pmjones, sure. | 17:30 |
|
| Thanks for your time. | 17:30 |
|
| Have a nice day. | 17:30 |
|
pmjones
| very welcome :-) | 17:30 |
|
harikt
| I am leaving for sleep. | 17:30 |
|
| Just came to say hi, but I take your time. Sorry it happened. | 17:31 |
|
| Have a nice day. | 17:31 |
|
| Enjoy all | 17:31 |
| ← harikt left | 17:32 |
| → wdna_ joined | 18:03 |
| ← jakefolio left | 18:18 |
| ← kil0byte left | 18:55 |
| → kil0byte joined | 18:56 |
| ← kil0byte left | 19:50 |
| ← joelclermont left | 20:06 |
| ← pmjones left | 20:13 |
| → pmjones joined | 20:14 |
| ← pmjones left | 20:14 |
| → jakefolio joined | 20:14 |
| → pmjones joined | 20:14 |
| ← lenton left | 20:59 |
| ← wdna_ left | 21:19 |
| ← pmjones left | 21:42 |
| ← jakefolio left | 23:32 |