Exemplo n.º 1
0
 public function Finish(Nether\Project\RealBooter $realboot)
 {
     $realboot->ShowMessage('To finalise your setup you will need to run composer update to make sure you have all the packages and get your autoloader generated.');
     echo "\t\$ php composer.phar update", PHP_EOL, PHP_EOL;
     $realboot->ShowMessage('If you already had all the packages installed prior (manually or via netherphp/world) or are having issues with undefined classes, try regenerating the autoloader.');
     echo "\t\$ php composer.phar dump-autoload", PHP_EOL, PHP_EOL;
     return;
 }
Exemplo n.º 2
0
 public function Ask(Nether\Project\RealBooter $realboot)
 {
     $realboot->ShowBanner($this->Name)->ShowMessage($this->Info)->ShowPrompt("Setup {$this->Name}?", 'y', function ($yn) {
         if (strtolower($yn) === 'y') {
             $this->SetEnabled(true);
         } else {
             $this->SetEnabled(false);
         }
         return;
     });
     return $this;
 }
Exemplo n.º 3
0
 public function Finish(Nether\Project\RealBooter $realboot)
 {
     $realboot->ShowMessage('After the composer update you will be able to test this new application right out of the box with PHPs built in test server. If you installed Nether Surface, it will even be pretty.');
     echo "\t\$ php -S localhost:80 -t www", PHP_EOL, PHP_EOL;
     return;
 }