Log message #4159209

# At Username Text
# Jul 14th 2018, 14:04 josbeir spam much
# Jul 14th 2018, 14:04 josbeir wow wtf
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/webroot/index.php(40): Cake\Http\Server->run() #23 {main} ```
# Jul 14th 2018, 13:55 slackebot Object(Cake\Http\Runner)) #20 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(51): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #21 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Server.php(98): Cake\Http\Runner->run(Object(Cake\Http\MiddlewareQueue), Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #22
# Jul 14th 2018, 13:55 ando_suguru #18 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php(53): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #19 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): DebugKit\Middleware\DebugKitMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response),
# Jul 14th 2018, 13:55 slackebot Object(Cake\Http\Runner))
# Jul 14th 2018, 13:55 slackebot #16 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php(98): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #17 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response),
# Jul 14th 2018, 13:55 slackebot #14 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php(88): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #15 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Routing\Middleware\AssetMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
# Jul 14th 2018, 13:55 slackebot #12 /Users/beyond-system/GitRepositories/yakushima-api/vendor/ozee31/cakephp-cors/src/Routing/Middleware/CorsMiddleware.php(31): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #13 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cors\Routing\Middleware\CorsMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php(157): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #11 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Routing\Middleware\RoutingMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/BaseApplication.php(232): Cake\Http\ActionDispatcher->dispatch(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #9 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Http\BaseApplication->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner)) #10
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/ControllerFactory.php(46): ReflectionClass->newInstance(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #7 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php(91): Cake\Http\ControllerFactory->create(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #8
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/vendor/friendsofcake/crud/src/Controller/Component/CrudComponent.php(295): Crud\Controller\Component\CrudComponent->action('token') #2 /Users/beyond-system/GitRepositories/yakushima-api/vendor/friendsofcake/crud/src/Controller/Component/CrudComponent.php(405): Crud\Controller\Component\CrudComponent->enable('token') #3
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/src/Controller/Api/UsersController.php(43): Crud\Controller\Component\CrudComponent->mapAction('token', Array) #4 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Controller/Controller.php(272): App\Controller\Api\UsersController->initialize() #5 [internal function]: Cake\Controller\Controller->__construct(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #6
# Jul 14th 2018, 13:55 ando_suguru *logs/error.log* ``` 2018-07-14 22:31:52 Error: [Error] Class 'App\Api\Crud\Action\Users\TokenAction' not found Request URL: /api/users/token Stack Trace: #0 /Users/beyond-system/GitRepositories/yakushima-api/vendor/friendsofcake/crud/src/Controller/Component/CrudComponent.php(281): Crud\Controller\Component\CrudComponent->_loadAction('token') #1
# Jul 14th 2018, 13:55 slackebot public function initialize() { parent::initialize(); $this->Crud->mapAction('add', 'Crud.Add'); $this->Crud->mapAction('delete', 'Crud.Delete'); $this->Crud->mapAction('edit', 'Crud.Edit'); $this->Crud->mapAction('index', 'Crud.Index'); $this->Crud->mapAction('token', '\App\Api\Crud\Action\Users\TokenAction'); // get error here $this->Crud->mapAction('view', 'Crud.View'); } } ```
# Jul 14th 2018, 13:55 ando_suguru *src/Controller/Api/UsersController.php:* ``` <?php namespace App\Controller\Api; use Cake\Event\Event; /** * Users Controller * * @property \App\Model\Table\UsersTable $Users * * @method \App\Model\Entity\User[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = []) */ class UsersController extends AppController { /** * Initialization hook method. * * @return void */
# Jul 14th 2018, 13:55 ando_suguru *src/Action/Users/TokenAction.php:* ``` <?php namespace App\Api\Crud\Action\Users; class TokenAction extends \Crud\Action\BaseAction { // Processing related to authentication } ```
# Jul 14th 2018, 13:54 ando_suguru Hello! ! * If the question on this workspace or channel is inappropriate, please tell me where to ask the appropriate questions. I am having this problem, but is there any solution? https://github.com/FriendsOfCake/crud/issues/568 The same error occurs even if `composer dump-autoload` is executed. The code is as follows.
# Jul 14th 2018, 13:52 kitcat711 and just to be sure: the seetings is done in the default.ctp file?
# Jul 14th 2018, 13:46 kitcat711 josbeir : ok, I just want to make it like the "non pre-existing" template in 3.4 :)
# Jul 14th 2018, 13:41 admad what changed in breadcrumbshelper between 3.5 and 3.6?
# Jul 14th 2018, 13:39 josbeir funny thing is, when migrating to 3.6 i found that updating breadcrumbhelper was the most 'repetitive' work i had during migration :)
# Jul 14th 2018, 13:39 josbeir override the templates, see the breadcrumbshelper class
# Jul 14th 2018, 13:39 josbeir but its easily changable
# Jul 14th 2018, 13:39 josbeir by defaults it bullet lists
# Jul 14th 2018, 13:38 josbeir @kitcat711 you can now define templates in the breadcrumbhelper configuration
# Jul 14th 2018, 13:36 kitcat711 Bonjour (again), moving up from 3.5 to 3.6 I am changing the breadcrumbs, I made it worked, but the render is now using bullet list, what am I missing ?
# Jul 14th 2018, 13:35 neon1024 Well India were impressive in the field
# Jul 14th 2018, 13:35 admad @neon1024 improved performance today in the ODI but I doubt the end result will be different :slightly_smiling_face:
# Jul 14th 2018, 13:34 blueman thank you
# Jul 14th 2018, 13:33 blueman ok
# Jul 14th 2018, 13:32 saeideng you can use components if you like to share logic between controllers
# Jul 14th 2018, 13:31 josbeir anyway, it should work, its a php question anyway, has nothing to do with cake
# Jul 14th 2018, 13:31 josbeir why just no create a helper class ?
# Jul 14th 2018, 13:31 josbeir but is that function using other methods/properties in that class because they wont be accessible
# Jul 14th 2018, 13:28 blueman to continue the execution flux
# Jul 14th 2018, 13:27 blueman the function must not have a redirect
# Jul 14th 2018, 13:24 blueman i was readng cake event system ... but i just want to call an function in NotificationsController to save the notification in database
# Jul 14th 2018, 13:22 neon1024 Although, this kind of system is already in the core with the FlashComponent really
# Jul 14th 2018, 13:21 neon1024 blueman, What sort? Live or by request? If you want on request you could use Events, and just dispatch a notification event, then have a listener which adds it to the request or session, perhaps sets it to the view for output