Class 'Phalcon\Di\FactoryDefault\Cli' not found in app/cli.php on line 8

why app/cli.php give me error like this one when i run php app/cli.php Class 'Phalcon\Di\FactoryDefault\Cli' not found in app/cli.php on line 8

my phalcon is working well, i dont understand why this happen, im using phalcon 2.0.3 please help me. and phalcon.ini is located in /etc/php5/apache2/conf.d/30-phalcon.ini. should i also locate phalcon.ini in /etc/php5/cli/conf.d

And how can i adding service to CLI Task

You have use statement ? Normalnny, just add service to di and then in task access di to get this service.

edited Dec '15

You have use statement ? Normalnny, just add service to di and then in task access di to get this service.

i follow the documentation in https://docs.phalconphp.com/en/latest/reference/cli.html but in doesnt work at all.

For me its working you sure that you have use Phalcon\DI\FactoryDefault\CLI ?

For me its working you sure that you have use Phalcon\DI\FactoryDefault\CLI ?

im using phalcon 2.0.3

It looks like your cli is ignoring extension, just add phalcon to cli too.