I'm trying to create a debug utility that prints out the time a script took, the actual task name it used and actual action it ran
<?php
$di = new Phalcon\DI\FactoryDefault\CLI();
$console = new \Phalcon\CLI\Console();
$console->setDI($di);
$console->handle($argv);
// something like this maybe???
$d = $console->getDI();
$d->get('dispatcher')->getTaskName();
?>How do i get the task and action name (i don't want to grab it from argv)?
class TestTask extends \Phalcon\CLI\Task{public function testAction(){echo $this->dispatcher->getTaskName();}}
--
You received this message because you are subscribed to the Google Groups "Phalcon PHP Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phalcon+u...@googlegroups.com.
To post to this group, send email to pha...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/phalcon/-/S_2kZfV8juAJ.
For more options, visit https://groups.google.com/groups/opt_out.