Log message #4101220

# At Username Text
# Dec 5th 2017, 17:18 hmic or have a - git excluded - app_local.php file
# Dec 5th 2017, 17:18 hmic on your question: you can either inject the configuration needed via the environment
# Dec 5th 2017, 17:18 xapak Alright, so, to keep things in context: What’s the state of the art on how CakePHP 3.5 handles secrets then?
# Dec 5th 2017, 17:18 hmic really really do!
# Dec 5th 2017, 17:17 hmic go with 3.5!
# Dec 5th 2017, 17:17 hmic you said it's a new project started on cake
# Dec 5th 2017, 17:17 xapak They have legacy project on PHP 5.3 and stuff like that.
# Dec 5th 2017, 17:17 xapak They are not necessarily just copy-pasting, but they are kind of adapting it.
# Dec 5th 2017, 17:17 xapak hmic, I understand, problem is this is kind of new, but they are just leveraging from the project they already have in 2.4 (yah, I know).
# Dec 5th 2017, 17:16 hmic xapak: don't start a new project in 2.10
# Dec 5th 2017, 17:14 xapak I’m already researching things like Hashicorp Vault, but I’m curious in the state of the art of this.
# Dec 5th 2017, 17:14 xapak Just want them to start doing things “the right way” since the beginning.
# Dec 5th 2017, 17:13 xapak DevOps here
# Dec 5th 2017, 17:13 xapak Developers are going to start working on a v2.10 project (to start migrating from legacy), but since it’s a new project, I’m curious: What’s the suggested way for CakePHP to store things like API keys or credentials? I have legacy project generating a new bootstrap.php with the secrets in it during deployment, but I’m curious if CakePHP has any conventions on what file to use for such things.
# Dec 5th 2017, 17:11 hmic but as you said it's request bound - it's not gonna work in a shell context anyways
# Dec 5th 2017, 17:11 xapak Hello.
# Dec 5th 2017, 17:11 hmic if you need it in a shell context and controller context - build a custom lib to include in both.
# Dec 5th 2017, 17:10 hmic they are bound to controllers
# Dec 5th 2017, 17:10 hmic of course not
# Dec 5th 2017, 17:07 meder do they load in cli?
# Dec 5th 2017, 17:07 meder are there limitations to components, hmic?
# Dec 5th 2017, 16:43 hmic meder: request related: controller/component, response related: controller/component too, model "conditions": table with custom finder
# Dec 5th 2017, 16:42 meder is it more fitting to conjoin 2 similar controllers code in the model or component? the code has a lot of conditions on request params which probably warrants model, but dumps json at certain points (no results etc).
# Dec 5th 2017, 15:56 neon1024 I’m not sure how that related issue is related to nested contain closures
# Dec 5th 2017, 15:55 neon1024 Oh, I was just commenting on the included code snippet here in slack
# Dec 5th 2017, 15:55 hmic so cake does not know at query time
# Dec 5th 2017, 15:55 hmic it's not a join, it's in a collection after the queries, as it's database i18n
# Dec 5th 2017, 15:54 neon1024 Cake will tell you if you’ve failed to select a required foreign key :slightly_smiling_face:
# Dec 5th 2017, 15:54 hmic saeideng: i suppose your problem is not the order but a missing additional key to join the data up
# Dec 5th 2017, 15:53 neon1024 File uploaded https://cakesf.slack.com/files/U1BT622HW/F8A3NTNP7/screen_shot_2017-12-05_at_15.53.13.png / https://slack-files.com/T053DPNCM-F8A3NTNP7-f674660e63
# Dec 5th 2017, 15:52 neon1024 Yes, it is allowed.
# Dec 5th 2017, 15:47 saeideng :point_up_2:
# Dec 5th 2017, 15:46 saeideng ``` ->contain([ 'Events' => function (Query $query) { return $query->find() ->contain([ 'MainTopics' => function (Query $query) { return $query->find() ->select(['id', 'topic']); } ]); }, ```
# Dec 5th 2017, 15:45 saeideng https://github.com/cakephp/cakephp/issues/11395
# Dec 5th 2017, 15:45 saeideng is allowed to have nested contain () ?
# Dec 5th 2017, 15:44 saeideng hi
# Dec 5th 2017, 15:43 hmic it makes not much sense and is likely a typo IMHO
# Dec 5th 2017, 15:43 hmic joopm, show the code on github
# Dec 5th 2017, 15:38 joopm s
# Dec 5th 2017, 15:37 joopm using different names does not help
# Dec 5th 2017, 15:37 joopm too