# |
Apr 25th 2019, 15:25 |
this.impetus |
@neon1024 `composer update twig` prompts `Package "twig" listed for update is not installed. Ignoring.` This is true for all the listed twig packages. How are these packages managed if I do wish to update them? |
# |
Apr 25th 2019, 15:15 |
J98hasjd |
Does someone know how to pass a variable from Controller into a costum ExceptionRenderer? I'd like to pass validation Errors and JSON them for API users. |
# |
Apr 25th 2019, 15:15 |
neon1024 |
I was sure that bake was onto 2.x releases by now :thinking_face: |
# |
Apr 25th 2019, 15:15 |
neon1024 |
Hm, nope. https://semver.mwl.be/#?package=cakephp%2Fbakeandversion=~1.0andminimum-stability=stable |
# |
Apr 25th 2019, 15:14 |
neon1024 |
However! I don’t think cakephp/bake ~1.0 would pull the Twig changes. I think they’re more recent than that, but I might be wrong |
# |
Apr 25th 2019, 15:14 |
neon1024 |
So it might be likely |
# |
Apr 25th 2019, 15:14 |
neon1024 |
Well cakephp/bake implements twig/twig for the templating |
# |
Apr 25th 2019, 15:12 |
slackebot |
implementations ``` |
# |
Apr 25th 2019, 15:12 |
this.impetus |
```aptoma/twig-markdown 2.0.0 3.1.0 Twig extension to work with Markdown content ralouphie/getallheaders 2.0.5 3.0.3 A polyfill for getallheaders. twig/twig v1.39.1 v2.8.1 Twig, the flexible, fast, and secure template language for PHP umpirsky/twig-php-function v0.1 0.2.0 Call (almost) any PHP function from your Twig templates. zendframework/zend-diactoros 1.8.6 2.1.1 PSR HTTP Message |
# |
Apr 25th 2019, 15:12 |
this.impetus |
Enh, 5 items returned, most associated with Twig, nothing explicitly related to bake, though perhaps one is and I wouldn't recognize it |
# |
Apr 25th 2019, 15:06 |
neon1024 |
You might want `-D` to avoid getting extra dependancy noise :slightly_smiling_face: |
# |
Apr 25th 2019, 14:55 |
Martin` |
what does `composer outdated` say? is it up2date? |
# |
Apr 25th 2019, 14:54 |
this.impetus |
... same for `composer update cakephp/bake` |
# |
Apr 25th 2019, 14:49 |
this.impetus |
well.. `composer require --dev cakephp/bake:~1.0`, which I just copied and pasted from the CookBook admittedly, gives `Nothing to install or update` |
# |
Apr 25th 2019, 14:46 |
this.impetus |
Ah. Sorry, if that was in the migration guide I am missing it. Counsel where i can read about achieving that? |
# |
Apr 25th 2019, 14:45 |
admad |
You probably need to upgrade bake plugin too |
# |
Apr 25th 2019, 14:45 |
this.impetus |
One more—migrated to Cake3.7, added a new table for a HABTM relationship between two models that had already existed. When I run `cake bake all` the console is throwing `Exception: Call to a member function addMany() on null in [<project>/vendor/cakephp/cakephp/src/Core/BasePlugin.php, line 248]` |
# |
Apr 25th 2019, 13:46 |
this.impetus |
flawless thanks guys |
# |
Apr 25th 2019, 13:43 |
cnizzardini |
I don't like the idea that I had to use a plugin to auto create configs, would've love for it to happen automatically |
# |
Apr 25th 2019, 13:43 |
admad |
then run `composer update` |
# |
Apr 25th 2019, 13:43 |
this.impetus |
great, tyvm |
# |
Apr 25th 2019, 13:43 |
admad |
manually or using `composer require` |
# |
Apr 25th 2019, 13:42 |
ricksaccous |
yep |
# |
Apr 25th 2019, 13:42 |
admad |
the proper way to update the version constraint for that plugin in composer.json |
# |
Apr 25th 2019, 13:42 |
ricksaccous |
remove upgrade restrictions in composer.json |
# |
Apr 25th 2019, 13:41 |
slackebot |
it |
# |
Apr 25th 2019, 13:41 |
this.impetus |
Hopefully quick an easy question; I'm migrating from cake3.6 to 3.7; the current version of one of my composer-managed plugins isn't compatible with 3.7—I'm actually upgrading because the newer version of this plug-in *is* compatible with 3.7 and has features I want access to. That said, the old version currently installed is blocking the update. Obvs I can just delete it and reinstall, was curious if there was a 'proper' means of doin |
# |
Apr 25th 2019, 13:33 |
cnizzardini |
Its not a PHP unit thing, its that our custom config file is not copied over for customer.default.php when composer install is run. I got around this by using the Config File Provider Plugin. |
# |
Apr 25th 2019, 13:23 |
neon1024 |
Ahh, they’re all in columns! :face_palm: |
# |
Apr 25th 2019, 13:22 |
neon1024 |
Why isn’t firstMatch in this list? I tried editing the doc page, but the one in the repo seems different to what’s on live to me |
# |
Apr 25th 2019, 13:22 |
neon1024 |
https://book.cakephp.org/3.0/en/core-libraries/collections.html#list-of-methods |
# |
Apr 25th 2019, 12:22 |
admad |
App::uses() is just glorified `include()` |
# |
Apr 25th 2019, 12:21 |
val |
Hi, has anybody tried to use namespaces in cake 2.x instead of `App::uses()`? |
# |
Apr 25th 2019, 12:14 |
admad |
kiwi_14: this might help you https://stackoverflow.com/questions/30241975/how-to-limit-contained-associations-per-record-group |
# |
Apr 25th 2019, 12:05 |
kiwi_14 |
So, i have 3 Tables : "Category", "Host" and "Experience". I would like to get 12 max experiences by Category. |
# |
Apr 25th 2019, 12:04 |
Martin` |
bad request? |
# |
Apr 25th 2019, 12:03 |
mrgrimpy |
And what type of error would you suggest I throw if the request header !== application/json? |
# |
Apr 25th 2019, 12:02 |
np |
what is problem? |
# |
Apr 25th 2019, 12:02 |
Martin` |
Just drop the question :) |
# |
Apr 25th 2019, 12:01 |
kiwi_14 |
Hi, i have a problem with Cake's ORM, is someone available to help ? |
# |
Apr 25th 2019, 12:00 |
admad |
@mrgrimpy though i would suggests allowing access to URL without .json extension too but if request had Accept: application/json header. For that you just need to use `$this->request->is('json')` instead of checking for `_ext` param. |