Reputation: 1374
Is that possible to call a taskAction (which is in cli Task) from any Controller in Phalcon?
I have a app->task->mainTask.php and app->controller->apiController.php I want to call a function which is in mainTask.php from apiController.php, Can I do that? if yes, How?
Thanks.
Upvotes: 0
Views: 352
Reputation: 1369
Isn't it easier to just move this code from task to service and use this service in both controller and task?
Upvotes: 1