Esempio n. 1
0
 public function init()
 {
     parent::init();
     //Проверка наличия composer, установка если нет.
     $composer = ROOT_DIR . "/composer.phar";
     if (!file_exists($composer)) {
         $this->systemCmdRoot('php -r "readfile(\'https://getcomposer.org/installer\');" | php');
         $this->actionSelfUpdate();
     }
     if (!file_exists($composer)) {
         throw new \InvalidArgumentException("composer.phar file не найден");
     }
 }