# |
Mar 27th 2019, 15:57 |
neon1024 |
What’s the feature? |
# |
Mar 27th 2019, 15:57 |
neon1024 |
Why do you need that? |
# |
Mar 27th 2019, 15:56 |
alexdd55 |
i want to build a string with all values of an object (no keys) |
# |
Mar 27th 2019, 15:56 |
neon1024 |
Sounds like XY to me. What is it you’re actually trying to do? |
# |
Mar 27th 2019, 15:56 |
neon1024 |
Then there are no non-static or public properties |
# |
Mar 27th 2019, 15:55 |
alexdd55 |
@neon1024 its empty, thats why i am asking |
# |
Mar 27th 2019, 15:52 |
alexdd55 |
or more direct: is there a way to get all values of an object, do not need the keys |
# |
Mar 27th 2019, 15:52 |
neon1024 |
https://www.php.net/manual/en/function.get-object-vars.php |
# |
Mar 27th 2019, 15:51 |
alexdd55 |
is there a way to get all “keys” of an object? |
# |
Mar 27th 2019, 15:34 |
cnizzardini |
the -o helped a lot |
# |
Mar 27th 2019, 15:30 |
cnizzardini |
Reading the docs, I think you meant -o |
# |
Mar 27th 2019, 15:29 |
cnizzardini |
furthmore, when running `bin/cake upgrade skeleton -f /var/www/my-app` it fails with `Error: Unknown short option `f`` |
# |
Mar 27th 2019, 15:28 |
slackebot2 |
Cake\Console\ShellDispatcher->_dispatch(Array) #7 /var/www/personal/upgrade/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(128): Cake\Console\ShellDispatcher->dispatch(Array) #8 /var/www/personal/upgrade/bin/cake.php(21): Cake\Console\ShellDispatcher::run(Array) #9 {main} |
# |
Mar 27th 2019, 15:28 |
slackebot2 |
Cake\Upgrade\Shell\Task\FixturesTask->process('/var/www/asrlod...') #4 /var/www/personal/upgrade/vendor/cakephp/cakephp/src/Console/Shell.php(518): Cake\Upgrade\Shell\UpgradeShell->all('/var/www/asrlod...') #5 /var/www/personal/upgrade/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(230): Cake\Console\Shell->runCommand(Array, true, Array) #6 /var/www/personal/upgrade/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(182): |
# |
Mar 27th 2019, 15:28 |
slackebot2 |
Cake\Upgrade\Shell\Task\FixturesTask->Cake\Upgrade\Shell\Task\{closure}(Array) #1 /var/www/personal/upgrade/src/Shell/Task/FixturesTask.php(139): preg_replace_callback('/(public \\$fiel...', Object(Closure), '<?php\nnamespace...', -1, 1) #2 /var/www/personal/upgrade/src/Shell/Task/ChangeTrait.php(63): Cake\Upgrade\Shell\Task\FixturesTask->_process('/var/www/asrlod...') #3 /var/www/personal/upgrade/src/Shell/UpgradeShell.php(114): |
# |
Mar 27th 2019, 15:28 |
cnizzardini |
Exception: syntax error, unexpected end of file, expecting ']' in [/var/www/personal/upgrade/src/Shell/Task/FixturesTask.php(70) : eval()'d code, line 15] 2019-03-27 11:26:36 Error: [ParseError] syntax error, unexpected end of file, expecting ']' in /var/www/personal/upgrade/src/Shell/Task/FixturesTask.php(70) : eval()'d code on line 15 Stack Trace: #0 [internal function]: |
# |
Mar 27th 2019, 15:28 |
cnizzardini |
it also encounters erros when running: |
# |
Mar 27th 2019, 15:26 |
cnizzardini |
@dereuromark i indeed cloned upgrade, ran composer as the readme suggested, but still continued to encounter errors |
# |
Mar 27th 2019, 15:16 |
dereuromark |
skeleton upgrade would do all that automatically, using -f as I suggested |
# |
Mar 27th 2019, 15:15 |
neon1024 |
@cnizzardini https://github.com/cakephp/app/blob/master/webroot/index.php#L31 |
# |
Mar 27th 2019, 15:11 |
cnizzardini |
Uncaught Error: Class 'Cake\Routing\Router' not found in vendor/cakephp/cakephp/config/bootstrap.php:22 |
# |
Mar 27th 2019, 15:11 |
cnizzardini |
issue is when i remove `require ROOT . DS . 'vendor' . DS . 'autoload.php';` from bootstrap I then get hit with this: |
# |
Mar 27th 2019, 15:10 |
dereuromark |
but from 3.5 to 3.6+ all should already work fine |
# |
Mar 27th 2019, 15:09 |
dereuromark |
in composer.json, see core app |
# |
Mar 27th 2019, 15:09 |
cnizzardini |
where is autoload supposed to be, i didn't see it in the skeleton bootstrap, so I added it in |
# |
Mar 27th 2019, 15:08 |
cnizzardini |
this makes sense actually |
# |
Mar 27th 2019, 15:08 |
dereuromark |
composer dumpautoload after checking the psr4 is set up correctly |
# |
Mar 27th 2019, 15:07 |
dereuromark |
your composer autoload is maybe wrong or sth |
# |
Mar 27th 2019, 15:05 |
cnizzardini |
Seems its looking in the wrong place for Application, which should be (and is for me) in the App namespace |
# |
Mar 27th 2019, 15:04 |
cnizzardini |
Eesh any ideas on this one when upgrading to cake 3.7 "[Error] Class 'App\View\Application' not found #0 /var/www/asrlodging/rootrez/vendor/cakephp/cakephp/src/View/View.php(374)" |
# |
Mar 27th 2019, 14:39 |
cnizzardini |
seemed to work better when not using "all" |
# |
Mar 27th 2019, 14:36 |
cnizzardini |
unfortunately bin/cake upgrade all /var/www/myproject does not work |
# |
Mar 27th 2019, 14:13 |
dereuromark |
read it and use the useful things for you. |
# |
Mar 27th 2019, 14:13 |
cnizzardini |
haha i ask because its linked to from README |
# |
Mar 27th 2019, 14:12 |
dereuromark |
Well, I did a year ago :) |
# |
Mar 27th 2019, 14:11 |
cnizzardini |
Do you recommend this as well: https://www.dereuromark.de/2018/03/14/cakephp-3-6-is-coming/ |
# |
Mar 27th 2019, 14:09 |
cnizzardini |
so there is lots of weird stuff in there i think |
# |
Mar 27th 2019, 14:09 |
cnizzardini |
plus this thing started with cake 3.0 |
# |
Mar 27th 2019, 14:08 |
cnizzardini |
not fun |
# |
Mar 27th 2019, 14:08 |
cnizzardini |
i was trying to piece together all the changes from the application template |
# |
Mar 27th 2019, 14:08 |
cnizzardini |
thanks |