# |
Jul 12th 2017, 16:07 |
ericadeefox |
it never occurred to me that there could just be a built-in way to turn it off for testing....... |
# |
Jul 12th 2017, 16:07 |
ericadeefox |
I was scolded by 2 people yesterday for just going into the source code and do that tho. like I went in and just turned the exceptions off and made it so that it'd return the state values anyway. |
# |
Jul 12th 2017, 16:07 |
jeremyharris |
it’s working? |
# |
Jul 12th 2017, 16:06 |
ericadeefox |
jesus christ all I had to do was turn the damn thing off lol!!!! |
# |
Jul 12th 2017, 16:03 |
jeremyharris |
https://github.com/facebook/php-graph-sdk/blob/4.0-dev/src/Facebook/FacebookRedirectLoginHelper.php#L339 |
# |
Jul 12th 2017, 16:02 |
jeremyharris |
it’ll still write to the global, and everyone should be happy :) |
# |
Jul 12th 2017, 16:02 |
ericadeefox |
"they probably just disable session checking" I had thought so... |
# |
Jul 12th 2017, 16:01 |
jeremyharris |
@ericadeefox maybe check how facebook tests it. they probably just disable session checking, eg. that `$this->checkForSessionStatus` |
# |
Jul 12th 2017, 15:59 |
ericadeefox |
ohhh smdh I did not even think of that |
# |
Jul 12th 2017, 15:59 |
jeremyharris |
@ericadeefox I think I know what’s happening. cake sees it’s in the cli context so it doesn’t start the session the typical way. doing so usually breaks the cli if I remember correctly |
# |
Jul 12th 2017, 15:59 |
jlroberts |
any idea what the entry point might be for that? |
# |
Jul 12th 2017, 15:58 |
jlroberts |
I need to find the entry point and autoload the cakephp files |
# |
Jul 12th 2017, 15:58 |
jlroberts |
but that isnt the entry point |
# |
Jul 12th 2017, 15:58 |
jlroberts |
so, composer runs this, "post-install-cmd": "App\\Console\\Installer::postInstall", |
# |
Jul 12th 2017, 15:58 |
jeremyharris |
again, cake isn’t bootstrapped at that point, so those convenience constants don’t exist yet |
# |
Jul 12th 2017, 15:58 |
jlroberts |
so, do I load the bootstrap.php maybe from Installer.php? |
# |
Jul 12th 2017, 15:58 |
jlroberts |
i did that with functions.php and it immediately threw an APP undefined |
# |
Jul 12th 2017, 15:57 |
jeremyharris |
require /path/to/file |
# |
Jul 12th 2017, 15:57 |
jlroberts |
lol =] |
# |
Jul 12th 2017, 15:57 |
jlroberts |
ok,so MarkStory says composer doesnt autoload the CakePHP files, and I have to do it myself, so, how do I do that |
# |
Jul 12th 2017, 15:57 |
jlroberts |
=] |
# |
Jul 12th 2017, 15:56 |
jeremyharris |
I think you’re making this way too complicated for yourself :slightly_smiling_face: |
# |
Jul 12th 2017, 15:56 |
jlroberts |
brb stack trace research |
# |
Jul 12th 2017, 15:56 |
jlroberts |
fuck |
# |
Jul 12th 2017, 15:56 |
jlroberts |
god what I would do for an autoloader stack trace right now |
# |
Jul 12th 2017, 15:56 |
jlroberts |
I need a break man, this doesnt make to much sense to me, if it autoloads classes, then it should autoload the functions.php |
# |
Jul 12th 2017, 15:55 |
jlroberts |
jeremyharris: ok, and thats only when composer runs the php files? |
# |
Jul 12th 2017, 15:53 |
ericadeefox |
now, see, no exceptions with `PHP_SESSION_NONE`. so the sessions are enabled. |
# |
Jul 12th 2017, 15:53 |
ericadeefox |
ok here now I will see if `PHP_SESSION_NONE` throws me the same exceptions. we'll see...... |
# |
Jul 12th 2017, 15:52 |
jeremyharris |
jlroberts cake doesn’t make use of that composer option |
# |
Jul 12th 2017, 15:52 |
ericadeefox |
I don't manually load it, no |
# |
Jul 12th 2017, 15:52 |
jeremyharris |
@ericadeefox is the facebook SDK being loaded early somehow? in setUp, or something |
# |
Jul 12th 2017, 15:51 |
jlroberts |
fuck |
# |
Jul 12th 2017, 15:51 |
jlroberts |
it appears that its not being autoloaded and i dont want to say |
# |
Jul 12th 2017, 15:51 |
jlroberts |
soooo |
# |
Jul 12th 2017, 15:51 |
jlroberts |
nope, wrong, not was what he was saying |
# |
Jul 12th 2017, 15:51 |
jlroberts |
ohhh i just figured out what Mark Story was saying |
# |
Jul 12th 2017, 15:51 |
jlroberts |
and that is in composer.json |
# |
Jul 12th 2017, 15:50 |
jlroberts |
https://github.com/cakephp/cakephp/blob/master/composer.json |
# |
Jul 12th 2017, 15:50 |
jlroberts |
https://getcomposer.org/doc/04-schema.md#files |
# |
Jul 12th 2017, 15:50 |
ericadeefox |
it's worth noting again that using `session_start()` at the top of my first integration test prevents the plugin from throwing these exceptions. but also prevents my `$this->session()` setters from doing anything |