php - How to create a dummy Controller in Command Shell pass to Component CakePHP 2.4.3

one text

Solution:

I found the answer by myself, just using Controller, I'm dumb for not noticing this

   <?php
    App::uses('ComponentCollection', 'Controller');
    App::uses('HopeeComponent', 'Controller/Component');
    App::uses('Controller', 'Controller');
    
    class PhulyShell extends AppShell {
    
        public $components = array('Hopee');
    
        public function initialize() {
            $collection = new ComponentCollection();
            $collection->init(new Controller);
            $this->Hopee = new HopeeComponent($collection);
        }
    }

Source