call('nntmux:git'); if ($output === 'Already up-to-date.') { $this->info($output); } else { $status = $this->call('nntmux:composer'); if ($status) { $this->error('Composer failed to update!!'); return false; } $fail = $this->call('nntmux:db'); if ($fail) { $this->error('Db updating failed!!'); return 1; } } $smarty = new \Smarty(); $smarty->setCompileDir(NN_SMARTY_TEMPLATES); $cleared = $smarty->clearCompiledTemplate(); if ($cleared) { $this->output->writeln('The Smarty compiled template cache has been cleaned for you'); } else { $this->output->writeln('You should clear your Smarty compiled template cache at: '. NN_RES.'smarty'.DS.'templates_c' ); } } catch (\Exception $e) { $this->error($e->getMessage()); } } }