IRCloggy #auraphp 2014-09-29

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2014-09-29

kil0byte left00:05
netzmacht joined06:00
Websoftwarez joined06:29
Websoftwarez left06:29
Websoftwarez joined06:29
Websoftwarez Morning06:31
kil0byte joined09:09
lenton joined09:11
wdna joined11:31
wdna left11:49
netzmacht left11:58
netzmacht joined12:04
netzmacht left12:17
netzmacht joined12:19
Websoftwarez So using Aura Router v2 how would I set a route match on a query parameter12:25
wdna joined12:56
wdna left12:59
wdna joined13:01
dragonmantank joined13:24
mfrost503 joined13:27
wdna left13:47
joelclermont joined13:52
jwoodcock_ Websoftwarez: example of your uri?13:58
jakefolio joined14:39
Websoftwarez jwoodcock_,15:16
index.php?content=clienten/compliancy&regio=234&jaar=201415:16
index.php?content=clienten/compliancy&jaar=2014&regio=23415:16
index.php?content=clienten/compliancy&maand=234&jaar=201415:17
index.php?content=clienten/compliancy&afdeling=2014&regio=23415:17
So I have these urls in a legacy situation where i cannot rewrite all of this15: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 thinking15:18
No classes available in that part of the system15: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 object15:22
Websoftwarez include file :)15:22
i mean no objects15:22
jwoodcock_ well, I'd try to at least get the file into the DI15:22
that way you can lazy load it, b15:22
ut an include works.15:22
Websoftwarez Yea will try playing with it15: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 it15:30
jwoodcock_ can, but that puts a dependency on env setup15:34
jakefolio left15:34
Websoftwarez Need to see what works best for this specific part of the system15:35
I'll have a swing tomorrow :)15:36
bye going home!15:36
kil0byte left15:39
pmjones joined15:48
jakefolio joined15:53
pmjones greetings all!15:54
Thanks, Davey, for the PR on Aura.Access15:54
Davey pmjones: no problem :)15:54
pmjones hi lenton nice to see you15:54
Davey at first I thought you'd made the same mistake most make, and then saw you hadn't and was delighted15: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 written15:55
pmjones so of course it was easy -- you got it right in the first place ;-)15:55
lenton pmjones: Hi15: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 extracted16:04
you were unhappy about some edge cases and Wanted Them Done Right16:04
Davey hahaha, I don't even remember that :P16:04
pmjones here's one bit16:05
https://github.com/pmjones/Aura.Accept/commit/180a3a32d71b34369284985c128910a78f33ce0d16:05
Davey HAH16:06
pmjones then i split it up and refactored16:06
blah blah blah16:06
netzmacht left16:32
kil0byte joined16:42
mfrost503 left17:00
harikt joined17:11
harikt Hi all17:11
pmjones hey there harikt17:11
harikt Just reading the logs came to say hi :)17:11
nice seeing you pmjones17:11
You love Access than Accept I guess ;) .17:11
pmjones nice to see you too17:11
harikt busy days :)17:12
pmjones well, Accept being "only" an extraction, it seems more achievable17:12
harikt pmjones, I was telling about the typo you wrote :) .17:13
http://colabti.org/irclogger/irclogger_log/auraphp?date=2014-09-29#l5817: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 case17: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 now17: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 stable17:16
harikt: heh17:16
harikt :)17:16
pmjones Aura is mostly on weekends now that i have a real job17:16
so i have to do it in batches even more so than usual17:17
harikt pmjones, understood.17:17
pmjones hey, if you can track down that Aura.Http error, that will help a lot17:17
i'd like to close that out17: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 nod17: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 unlikely17: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 point17:22
harikt :)17:23
pmjones, I did tried to write something . But not sure whether this is the right way to go with middleware though17:25
https://github.com/harikt/middleware-experiments/blob/master/src/Kernel.php#L31-L5617: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 sense17:26
so that each middleware could return a "stop" code or something17:27
harikt ok.17:27
pmjones shrugs17:27
harikt anyway it was a nice try with the phly/http17:28
https://github.com/harikt/middleware-experiments/blob/master/web/index.php#L7-L3517: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-717:28
pmjones i think PSR-7 does not have enough to it, for these purposes17:29
for a plain old "PHP sends a request to a remote API and gets a response back" it seems fine17:29
but for managing an incoming Request? i don't think so, not yet.17:30
and now i must step away17: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 all17:31
harikt left17:32
wdna_ joined18:03
jakefolio left18:18
kil0byte left18:55
kil0byte joined18:56
kil0byte left19:50
joelclermont left20:06
pmjones left20:13
pmjones joined20:14
pmjones left20:14
jakefolio joined20:14
pmjones joined20:14
lenton left20:59
wdna_ left21:19
pmjones left21:42
jakefolio left23:32

Logs Search ←Prev date Next date→ Channels Documentation