/** * Instantiates object, sets cache and session * * @param array $options Elements as follow: * FileCache cache * Logger Logger * Outputter Outputter * Session Session * @return TerminusCommand */ public function __construct(array $options = []) { $this->cache = new FileCache(); $this->runner = $options['runner']; $this->session = Session::instance(); $this->logger = $this->runner->getLogger(); $this->outputter = $this->runner->getOutputter(); $this->loadHelpers(); if (!Utils\isTest()) { Utils\checkForUpdate($this->log()); } }