# |
Mar 16th 2018, 12:53 |
neothermic |
Cats. So many cats to skin ;) |
# |
Mar 16th 2018, 12:53 |
dereuromark |
but sure, your call lists only the wired ones. either way works I guess. |
# |
Mar 16th 2018, 12:53 |
dereuromark |
which is the normal way to list em, yeah |
# |
Mar 16th 2018, 12:52 |
neothermic |
(and I'd have to iterate through CakePlugin::loaded and call App::objects on each to get their list too) |
# |
Mar 16th 2018, 12:52 |
neothermic |
`$appShells = App::objects('Console/Command', null, false);` gives me a list of shell filenames |
# |
Mar 16th 2018, 12:48 |
dereuromark |
haha, ok. Usually App::objects() or sth in 2.x used to work to list all of one type |
# |
Mar 16th 2018, 12:46 |
neothermic |
``` $result = shell_exec(APP_CURRENT . 'Console/cake --help --xml'); $xml = new SimpleXMLElement($result); $shells = []; foreach($xml->shell as $shell) { if ((string)$shell['provider'] !== 'CORE') { $shells[] = (string)$shell['call_as']; } }``` Ugly, but works. :P |
# |
Mar 16th 2018, 12:32 |
neothermic |
Hmm, I suppose I could get dirty and call `Console/cake --help --xml` and parse the XML result, but ugh. XML :P |
# |
Mar 16th 2018, 12:30 |
neothermic |
running them is no issue, what I'd really like is just a nice list of shells in an array via an easy-to-invoke function, but it seems it's tied into a Task, so not something straight forward. |
# |
Mar 16th 2018, 12:30 |
daniel____ |
@neothermic take a look to shell_exec function |
# |
Mar 16th 2018, 12:24 |
neothermic |
(without giving them any form of command-line access or anything) |
# |
Mar 16th 2018, 12:23 |
neothermic |
So we have test platforms, and all the crons are disabled. I want the ability to let testers run the shells manually for testing. |
# |
Mar 16th 2018, 12:06 |
slackebot |
could save it in a col called job_data and just use json to turn it into a string. |
# |
Mar 16th 2018, 12:06 |
spencdev |
Then have a cron job or if you use a scheduler, to run those jobs. If you use something like exec and it’s a long running shell, it’s going to create a world of problems. If you don’t want to write it yourself I believe there are plugins for it but it’s not that complicated. It basically running a shell to get the job from the database, then processing the job based off of what type of job it is. If you needed specific data for that |
# |
Mar 16th 2018, 12:00 |
spencdev |
Create a job queue from the DB |
# |
Mar 16th 2018, 11:44 |
neothermic |
They are, I want to give some people the ability to invoke shells from a web UI |
# |
Mar 16th 2018, 11:44 |
oldskool |
@neothermic The question would be why you want to do shell stuff from your controller. The two should be separated. |
# |
Mar 16th 2018, 11:26 |
neothermic |
I don't suppose in cake2 you can get a list of shells programatically? I've spotted CommandTask::getShellList, but I don't know if there's a good way to execute that from a controller |
# |
Mar 16th 2018, 10:38 |
dereuromark |
I just released a new https://github.com/dereuromark/cakephp-ide-helper/releases/tag/0.11.0 version - with full auto-complete for element() calls. Saves me a lot of typing and typos now :slightly_smiling_face: |
# |
Mar 16th 2018, 10:31 |
pierre-baptiste.varle |
@rogerpro yes I try this but when I adding the cas auth in configuration of users plugin the cass is used after the form so never. I make it work by overwriting the configuration with Configure::write. But I had to edit the cas auth file. I will make a pr for bug fix and and my "bridge" with event listner |
# |
Mar 16th 2018, 09:52 |
neon1024 |
Ah, I’ll use Comparison :slightly_smiling_face: |
# |
Mar 16th 2018, 09:48 |
neon1024 |
Need something which implements `\Cake\Database\ExpressionInterface` |
# |
Mar 16th 2018, 09:48 |
neon1024 |
Functions are expressions right? https://book.cakephp.org/3.0/en/orm/query-builder.html#using-sql-functions |
# |
Mar 16th 2018, 09:47 |
neon1024 |
What’s a nice easy Expression to use in a select? |
# |
Mar 16th 2018, 09:37 |
slackebot |
at https://github.com/snelg/cakephp-3-cas/issues or share questions here during your try/error task. Also maybe https://www.cakedc.com/roger_campanera/2018/01/26/integrating-users-and-acl-plugins-in-cakephp can help you to figure out how two plugins work together regarding auth. |
# |
Mar 16th 2018, 09:37 |
rogerpro |
I would follow both cakedc/users and snelg/cakephp-3-cas docs and then configure them following https://github.com/CakeDC/users/blob/master/Docs/Documentation/Configuration.md#configuration-options and https://github.com/snelg/cakephp-3-cas#usage — Somehow both configure Cake’s AuthComponent, so if functionality is not overloaded I guess they must work well together (but will require some try/error). Additionaly, you can ask for a deeper d |
# |
Mar 16th 2018, 09:20 |
pierre-baptiste.varle |
I need some doc on how to use a custom auth for users plugins |
# |
Mar 16th 2018, 09:17 |
pierre-baptiste.varle |
I would like to use https://github.com/snelg/cakephp-3-cas with https://github.com/CakeDC/users I don't know how this works |
# |
Mar 16th 2018, 09:15 |
rogerpro |
Hi @pierre-baptiste.varle expose your issue and whoever knows the answer will help you |
# |
Mar 16th 2018, 08:36 |
neon1024 |
Morning all, happy Friday |
# |
Mar 16th 2018, 08:16 |
pierre-baptiste.varle |
someone is using CakeDC/users? I need help |
# |
Mar 16th 2018, 08:07 |
crazycoder |
any problem about running cakephp on windows? |
# |
Mar 16th 2018, 08:07 |
crazycoder |
hello |
# |
Mar 16th 2018, 07:52 |
megan |
@rachna Hi! Go ahead and ask your question and then if someone can help then they will jump in |
# |
Mar 16th 2018, 07:49 |
rachna |
? |
# |
Mar 16th 2018, 07:49 |
rachna |
can you help me for few thinks in cake php |
# |
Mar 16th 2018, 07:49 |
rachna |
hi |
# |
Mar 16th 2018, 07:36 |
bravo-kernel |
It would be nice to see the cakefest talks in a similar way, not wait xxx weeks/months |
# |
Mar 16th 2018, 07:36 |
vwpoit |
Ok, @savant! Thank you. |
# |
Mar 16th 2018, 07:35 |
bravo-kernel |
https://emberweekly.us4.list-manage.com/track/click?u=ac25c8565ec37f9299ac75ca0andid=ff07f64e54ande=fe23a4efd3 |
# |
Mar 16th 2018, 07:35 |
bravo-kernel |
May I ask one more time why we are not able to watch the CakeFest talks on youtube/whatever right away? I am already looking at the full Ember video right now on youtube |