# |
Dec 30th 2019, 14:21 |
luizcmarin |
o certo para o compositor.json manter atualizado é 4.0-dev ou ^ 4.0? |
# |
Dec 30th 2019, 13:43 |
tibor.hajos |
Awesome, thank your for the quick reply :) |
# |
Dec 30th 2019, 13:42 |
dereuromark |
For readability better to store it in local var and then using $callable[] etc IMO. |
# |
Dec 30th 2019, 13:41 |
tibor.hajos |
Hello, I'm currently taking a shot at the HTTP part of this ticket, https://github.com/cakephp/cakephp/issues/13493 So far, I have been able to make everything working with PHP < 7.0, but I encountered a Uniform variable syntax in `TestApp/Http/RequestHandler` ```return ($this->callable)($request);``` This is not my strong point. Is it possible to replace it with ```return $$this->callable[$request];``` ? |
# |
Dec 30th 2019, 13:39 |
luizcmarin |
@jimbo2150 this is the point. That's what I want to know: Is my composer.json correct to keep me updated daily with the latest version and branches? |
# |
Dec 30th 2019, 13:33 |
jimbo2150 |
Yes, but I believe @luizcmarin was asking if his composer.json dependencies are correct. Obviously "cakphp 4/x-dev" is behind. It would be nice if there were a function to update that file and work around modified parts. |
# |
Dec 30th 2019, 13:32 |
luizcmarin |
The only plugin I personally installed was this: https://book.cakephp.org/4/en/tutorials-and-examples/cms/authentication-plugin.html#page-contents The rest I let (I hope) composer update does. |
# |
Dec 30th 2019, 13:30 |
admad |
`composer update` is only supposed to updated the dependencies |
# |
Dec 30th 2019, 13:29 |
jimbo2150 |
@admad unfortunatly `composer update` does not appear to update a composer.json file that has been modified (for plugins or otherwise) - at least for me. I have been copying the relevant parts from the app skeleton. |
# |
Dec 30th 2019, 13:28 |
jimbo2150 |
As far as the composer.json file, I would say you are safe using the cakephp/app composer.json (use the master for 4.0.x or the branch of the version you are using): https://github.com/cakephp/app/blob/master/composer.json |
# |
Dec 30th 2019, 13:28 |
jimbo2150 |
@luizcmarin Noticed that and submitted a bug: https://github.com/cakephp/cakephp/issues/14099 |
# |
Dec 30th 2019, 13:26 |
admad |
just run `composer update` if you have already started a cake 4 app |
# |
Dec 30th 2019, 13:25 |
luizcmarin |
@admad and my composer.json is correct? I try to keep it updated daily. |
# |
Dec 30th 2019, 13:23 |
luizcmarin |
@admad good to know. I thought I didn't help at all, just correcting grammar and semantics. Thanks |
# |
Dec 30th 2019, 13:20 |
admad |
@luizcmarin the zip is broken |
# |
Dec 30th 2019, 13:11 |
slackebot |
cakephp": "3.8. *", "cakephp / migrations": "^ 2.0.0", "cakephp / plugin-installer": "^ 1.0", "mobiledetect / mobiledetectlib": "2. *" }, " Question 1: Shouldn't the versions be any different? "3.8" Question 2: I haven't seen my cakephp / cakephp update for days. Is my composer setup correct? |
# |
Dec 30th 2019, 13:11 |
luizcmarin |
question: my composer.json: "" require ": { "php": "> = 7.2", "cakephp / authentication": "^ 2.0", "cakephp / cakephp": "4.x-dev", "cakephp / plugin-installer": "^ 1.0", "mobiledetect / mobiledetectlib": "2. *" }, " composer.json cakephp-4-0-1.zip (downloaded now): "" require ": { "php": "> = 5.6", "cakephp / |
# |
Dec 30th 2019, 13:11 |
luizcmarin |
hi boys |
# |
Dec 30th 2019, 11:38 |
challgren |
Ahh ok |
# |
Dec 30th 2019, 11:37 |
dereuromark |
no bug. it just seems that you cannot do to 8.0.0 back, as such the constraint should be a bit higher. |
# |
Dec 30th 2019, 11:36 |
challgren |
Ok, I made the suggestion. Wasnt sure if it was a bug or something wonky you knew about |
# |
Dec 30th 2019, 11:35 |
dereuromark |
always use 8.5+ mo |
# |
Dec 30th 2019, 11:35 |
dereuromark |
In fact, with phpunit I would, as they often break stuff in between, which is harder for your prefer-lowest then to stay green ;) |
# |
Dec 30th 2019, 11:35 |
challgren |
Yeah I think 8.0 is for cakephp/cakephp |
# |
Dec 30th 2019, 11:34 |
dereuromark |
Since require dev is only for this primary level (doesnt cascade), it is safe to always use quite modern dependencies. |
# |
Dec 30th 2019, 11:34 |
dereuromark |
phpunit/phpunit: Defined `8.0.0.0` as minimum, but is `8.0.4.0` You can set a -m flag to only warn about majors or adjust your constraint to ^8.0.4 here, or even ^8.5 as I do :) |
# |
Dec 30th 2019, 11:33 |
challgren |
@dereuromark any idea why prefer lowest is failing on this build? https://travis-ci.org/jomweb/CakeImpersonate/jobs/630906425 |
# |
Dec 30th 2019, 10:35 |
dereuromark |
haha, someone needs to fix the 46 issues (probably only a small twig3 thing). |
# |
Dec 30th 2019, 10:35 |
challgren |
You broke it! |
# |
Dec 30th 2019, 10:31 |
dereuromark |
https://github.com/cakephp/bake/pull/630 |
# |
Dec 30th 2019, 10:26 |
challgren |
I think I’ll just fix the failures for now |
# |
Dec 30th 2019, 10:25 |
dereuromark |
sure, if that works :) |
# |
Dec 30th 2019, 10:18 |
challgren |
My email queue task just calls the mailer send function with the entity and the mailer handles everything else |
# |
Dec 30th 2019, 10:17 |
challgren |
I stopped using it because my emails were to big to serialize |
# |
Dec 30th 2019, 10:16 |
challgren |
IMHO |
# |
Dec 30th 2019, 10:16 |
challgren |
No but serializing the email object is a bit much |
# |
Dec 30th 2019, 10:16 |
dereuromark |
Is there another good way of storing payload data? |
# |
Dec 30th 2019, 10:15 |
challgren |
It's honestly been a long time since I used the mail task you provide |
# |
Dec 30th 2019, 10:14 |
challgren |
If I recall you serialized an email into the data of the queued job |
# |
Dec 30th 2019, 10:13 |
dereuromark |
You can go with Mailer, sure. Whatever works for sending mails. |
# |
Dec 30th 2019, 10:10 |
challgren |
Wait nm, so you just need help fixing the tests? |