# |
Apr 26th 2017, 13:32 |
admad |
my hyridauth plugin is as plug-n-play as it gets |
# |
Apr 26th 2017, 13:31 |
spriz |
that's why I wanted to use https://github.com/thephpleague/oauth2-client :) |
# |
Apr 26th 2017, 13:31 |
spriz |
I wanted something that could plug'n'play different Oauth2 providers :S |
# |
Apr 26th 2017, 13:31 |
admad |
@spriz if you are feeling brave you can try out https://github.com/ADmad/cakephp-social-auth :slightly_smiling_face: |
# |
Apr 26th 2017, 13:16 |
dereuromark |
I use hybridauth to login with github |
# |
Apr 26th 2017, 13:15 |
spriz |
Does anyone have example of this running: https://github.com/UseMuffin/OAuth2 ? :thinking_face: |
# |
Apr 26th 2017, 13:11 |
inoas |
test runs |
# |
Apr 26th 2017, 13:08 |
inoas |
let me run it locally |
# |
Apr 26th 2017, 13:08 |
inoas |
while not optimal this is what I can help with https://github.com/dereuromark/cakephp-tools/pull/187/files |
# |
Apr 26th 2017, 13:05 |
dereuromark |
or rather on the specific file if you want to safe time ;) |
# |
Apr 26th 2017, 13:05 |
dereuromark |
well, adding a test and running php phpunit.phar on the plugin after composer udpate |
# |
Apr 26th 2017, 13:05 |
inoas |
mom |
# |
Apr 26th 2017, 13:05 |
inoas |
I have your plugin cloned, is there a very fast way to do it? |
# |
Apr 26th 2017, 13:05 |
dereuromark |
I will take care then otherwise |
# |
Apr 26th 2017, 13:04 |
inoas |
and I don't have a dev setup here... |
# |
Apr 26th 2017, 13:04 |
dereuromark |
thx, now I understand ;) |
# |
Apr 26th 2017, 13:04 |
cjohnson |
I forced the version number |
# |
Apr 26th 2017, 13:04 |
cjohnson |
one of my deps pulled a newer PHPUnit |
# |
Apr 26th 2017, 13:04 |
inoas |
should just be $languages[$match[2]][] = $match[1]; |
# |
Apr 26th 2017, 13:04 |
cjohnson |
got it |
# |
Apr 26th 2017, 13:04 |
inoas |
but because of BC ... |
# |
Apr 26th 2017, 13:04 |
inoas |
strtolower($match[1]); shouldn't be there in the first place |
# |
Apr 26th 2017, 13:03 |
inoas |
yes |
# |
Apr 26th 2017, 13:03 |
dereuromark |
I thought de_DE is the standard, uppercase for the country part. |
# |
Apr 26th 2017, 13:02 |
dereuromark |
inoas: would you mind adding a small test case for the lowercasing? why do you need it? |
# |
Apr 26th 2017, 12:59 |
cjohnson |
I clobbered it into the dir structure it expects but now I have incompatible declarations of CakeTestRunner::doRun with PHPUnit_TextUI_TestRunner::doRun |
# |
Apr 26th 2017, 12:57 |
cjohnson |
I think I see the problem, cake is looking for PHPUnit but composer installed it as phpunit |
# |
Apr 26th 2017, 12:55 |
cjohnson |
with phar, or with composer install |
# |
Apr 26th 2017, 12:55 |
cjohnson |
require_once(PHPUnit/TextUI/Command.php): failed to open stream: No such file or directory i…. |
# |
Apr 26th 2017, 12:55 |
cjohnson |
I’m reading here (https://book.cakephp.org/2.0/en/development/testing.html) and it suggests that I can just put the phar file from phpunit’s site into the vendor dir but I still get complaints |
# |
Apr 26th 2017, 12:54 |
cjohnson |
but I’m having trouble getting cake Test to find the phpunit files |
# |
Apr 26th 2017, 12:54 |
cjohnson |
I’m using 2.x and just started a fresh 2.9 project, and I added phpunit to my composer file and installed it |
# |
Apr 26th 2017, 12:51 |
inoas |
hm is it on purpose that the locales returned are actually lower case? |
# |
Apr 26th 2017, 12:47 |
inoas |
https://gist.github.com/inoas/69eccace624492814de7f7931e95095c does actually work <3 |
# |
Apr 26th 2017, 12:35 |
dereuromark |
yeah PhpQuery is probably the cooler way nowaways :slightly_smiling_face: if you dont have APIs you can rely on :P |
# |
Apr 26th 2017, 12:33 |
inoas |
but okay got it |
# |
Apr 26th 2017, 12:33 |
inoas |
I know PhpQuery - much like jQuery in the way it works |
# |
Apr 26th 2017, 12:27 |
dereuromark |
An alternative would PhpQueryLib be for example. |
# |
Apr 26th 2017, 12:26 |
dereuromark |
its only suggest, afaik ;) |
# |
Apr 26th 2017, 12:26 |
dereuromark |
parsing some htmldom |
# |
Apr 26th 2017, 12:25 |
inoas |
may I ask what you are using yangqi/htmldom for primarily? |