Log message #4214385

# At Username Text
# Nov 20th 2019, 13:54 slackebot https://stackoverflow.com/questions/29780380/in-cakephp-3-0-what-is-the-difference-between-initialize-and-beforefilter but the answers are not clear enough for me. Please advise
# Nov 20th 2019, 13:54 mehov Hi everyone, I installed stripe-php via composer and want to globally configure the api keys and the preferred api version. It will look like this: \Stripe\Stripe::setApiKey(Configure::read('Stripe.secretKey')); \Stripe\Stripe::setApiVersion(Configure::read('Stripe.apiVersion')); Figured I should put it inside AppController.php, but unsure if it goes under `beforeFilter()` or `initialize()`. I found
# Nov 20th 2019, 13:40 mehov https://cakesf.slack.com/archives/C053DPNGT/p1574254643156800 last time i got a curl timeout that looked like this, it was because i used a wrong array key to pass my AWS credentials
# Nov 20th 2019, 13:22 admad hehe
# Nov 20th 2019, 13:20 dereuromark in their heart, they remain loyal, for sure
# Nov 20th 2019, 13:20 dereuromark right right :slightly_smiling_face:
# Nov 20th 2019, 13:12 admad @dereuromark most likely they shifted to laravel https://www.loadsys.com/loadsys-adds-laravel-framework-arsenal/
# Nov 20th 2019, 12:57 maymeow `Cake\Http\Exception\HttpException: cURL Error (28) Operation timed out after 30000 milliseconds with 0 bytes received` any ideas what to with this?
# Nov 20th 2019, 12:55 michal.ferak Yes, it looks good for what it’s for!
# Nov 20th 2019, 12:53 dereuromark https://github.com/loadsys/CakePHP-Sitemap could probably be added to the list anyway for 3.x - not sure why they didnt do it yet, but that is more than just a view class ;) so yours would probably still be a different lightweight plugin of some sorts.
# Nov 20th 2019, 12:51 dereuromark tip: https://github.com/FriendsOfCake/awesome-cakephp/wiki has one listed as todo.
# Nov 20th 2019, 12:50 michal.ferak @admad @dereuromark Thanks for the ideas! Yes, the awesome list was my starting point but didn’t see anything relevant there. I’ll think of how to turn this into a community plugin, if/when I succeed. :slightly_smiling_face:
# Nov 20th 2019, 12:49 dereuromark and you could even make it a plugin then for the community. PS: check if the awesome list of 3.x or 2.x might even already contain some beginning ideas here.
# Nov 20th 2019, 12:48 admad @michal.ferak yes that's the right idea
# Nov 20th 2019, 12:46 dereuromark You could look how cakephp-feed plugin does it, also might make sense to have your own View class here for it maybe (like https://github.com/dereuromark/cakephp-feed/blob/master/src/View/RssView.php etc).
# Nov 20th 2019, 12:45 michal.ferak @admad Thanks. Trying to figure that out now. Doing something like: ```$xmlArray = [ 'urlset' => [ 'xmlns:' => 'http://www.sitemaps.org/schemas/sitemap/0.9', 'xmlns:xhtml' => 'http://www.w3.org/1999/xhtml', 'url' => $url, ] ]; $xmlObject = \Cake\Utility\Xml::fromArray($xmlArray); echo $xmlObject->asXML();```
# Nov 20th 2019, 12:44 admad @michal.ferak the serialization feature will only generate output based on the view variables sets, you can't make it generate xml tags as you are trying to do. You can/should still use XmlView but without serialization feature
# Nov 20th 2019, 12:36 maymeow can i use http client to call api on localhost:8765? (its sam application from wihich i making call)
# Nov 20th 2019, 12:26 birdy247 is anyone using xdebug with vagrant?
# Nov 20th 2019, 12:17 michal.ferak Should I instead not use _serialize and write a custom view?
# Nov 20th 2019, 12:16 michal.ferak I assume this is not the correct way of doing this, as I’m getting a 500 - “Namespace Error”
# Nov 20th 2019, 12:16 slackebot 'http://www.w3.org/1999/xhtml', 'url' => $urls, '_serialize' => ['@xmlns', '@xmlns:xhtml', 'url'] ])```
# Nov 20th 2019, 12:16 michal.ferak Hi! I’m trying to generate a sitemap using XML view using _serialize (following the instructions in docu). However, for my needs I also need to add xml:link to each <loc> - this needs registering xmlns:xhtml in the document root. This is what my set methods look like: ```$this->set('_rootNode', 'urlset'); $this->set([ '@xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9', '@xmlns:xhtml' =>
# Nov 20th 2019, 11:07 jotpe ah yeah, reading chat logs is skill to master ;)
# Nov 20th 2019, 10:54 dereuromark you didnt follow the conversation here probably.
# Nov 20th 2019, 10:51 jotpe is there kind of a upgrade tool to migrate cake3x apps? I guess my app should work more or less, but i don't want to migrate the app by hand
# Nov 20th 2019, 10:21 dereuromark yeah the more feedback the better.
# Nov 20th 2019, 10:20 neon1024 @challgren The number of RC releases will depend on how extensively the community test the releases
# Nov 20th 2019, 10:14 Martin` I think almost all my depecrations are gone in my project
# Nov 20th 2019, 10:13 Martin` ok, nothing to worry about this year :P
# Nov 20th 2019, 10:13 challgren My guess 1-2 months
# Nov 20th 2019, 10:12 Martin` When is planned release of cake 4.0 ?
# Nov 20th 2019, 10:05 challgren How many RCs will 4.x have?
# Nov 20th 2019, 10:05 dereuromark we will all have to work overtime the next weeks :slightly_smiling_face:
# Nov 20th 2019, 10:03 challgren I have a feeling if I upgrade my major app its going to require me to update a bunch of plugins
# Nov 20th 2019, 10:00 neon1024 I’ll try and find some time to build a new app with the 4.0.0-RC1 I think
# Nov 20th 2019, 09:57 neon1024 Does the 4.x branch of `cakephp/upgrade` work okay now?
# Nov 20th 2019, 09:48 dereuromark my old one had a "skeleton" command, that might be missing in the core one still.
# Nov 20th 2019, 09:48 dereuromark no pulling IMO, the upgrade tooling ideally should at some point provide all necessities
# Nov 20th 2019, 09:46 challgren new branch, pull cakephp/app? run composer update, run upgrade tooling?
# Nov 20th 2019, 09:45 dereuromark a new branch and some of the upgrade tooling run should usually suffice.