ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.222.114.70 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds/vendor/laravel/framework/src/Illuminate/Foundation/Console/ |
Upload File : |
<?php namespace Illuminate\Foundation\Console; use Exception; use Illuminate\Console\Command; use Symfony\Component\Process\ProcessUtils; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Process\PhpExecutableFinder; class ServeCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'serve'; /** * The console command description. * * @var string */ protected $description = 'Serve the application on the PHP development server'; /** * Execute the console command. * * @return void * * @throws \Exception */ public function fire() { chdir($this->laravel->publicPath()); $host = $this->input->getOption('host'); $port = $this->input->getOption('port'); $base = ProcessUtils::escapeArgument($this->laravel->basePath()); $binary = ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false)); $this->info("Laravel development server started on http://{$host}:{$port}/"); if (defined('HHVM_VERSION')) { if (version_compare(HHVM_VERSION, '3.8.0') >= 0) { passthru("{$binary} -m server -v Server.Type=proxygen -v Server.SourceRoot={$base}/ -v Server.IP={$host} -v Server.Port={$port} -v Server.DefaultDocument=server.php -v Server.ErrorDocument404=server.php"); } else { throw new Exception("HHVM's built-in server requires HHVM >= 3.8.0."); } } else { passthru("{$binary} -S {$host}:{$port} {$base}/server.php"); } } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['host', null, InputOption::VALUE_OPTIONAL, 'The host address to serve the application on.', 'localhost'], ['port', null, InputOption::VALUE_OPTIONAL, 'The port to serve the application on.', 8000], ]; } }