public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN', PimpleInterop $container = null) { parent::__construct($name, $version); $container = $container ?: new PimpleInterop(); $this->useContainer($container, true, true); }
public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN', Container $container = null) { parent::__construct($name, $version); $container = $container ?: $this->createContainer(); $this->useContainer($container, true, true); }
/** * Load correct autoloader depending on install location. */ if (file_exists(__DIR__ . '/../vendor/autoload.php')) { require __DIR__ . '/../vendor/autoload.php'; } else { require __DIR__ . '/../../../autoload.php'; } use Silly\Application; use Illuminate\Container\Container; /** * Create the application. */ Container::setInstance(new Container()); $version = '0.9.6'; $app = new Application('Laravel Valet For Windows', $version); /** * Prune missing directories and symbolic links on every command. */ if (is_dir(VALET_HOME_PATH)) { Configuration::prune(); Site::pruneLinks(); } /** * Allow Valet to be run more conveniently by allowing the Node proxy to run password-less sudo. */ $app->command('install', function () { //Caddy::stop(); Configuration::install(); Caddy::install(); //PhpFpm::install();
/** * Load correct autoloader depending on install location. */ if (file_exists(__DIR__ . '/../vendor/autoload.php')) { require __DIR__ . '/../vendor/autoload.php'; } else { require __DIR__ . '/../../../autoload.php'; } use Silly\Application; use Illuminate\Container\Container; /** * Create the application. */ Container::setInstance(new Container()); $version = '1.1.16'; $app = new Application('Laravel Valet', $version); /** * Prune missing directories and symbolic links on every command. */ if (is_dir(VALET_HOME_PATH)) { Configuration::prune(); Site::pruneLinks(); } /** * Allow Valet to be run more conveniently by allowing the Node proxy to run password-less sudo. */ $app->command('install', function () { Caddy::stop(); Configuration::install(); Caddy::install(); PhpFpm::install();
/** * Load correct autoloader depending on install location. */ if (file_exists(__DIR__ . '/../vendor/autoload.php')) { require __DIR__ . '/../vendor/autoload.php'; } else { require __DIR__ . '/../../../autoload.php'; } use Silly\Application; use Illuminate\Container\Container; /** * Create the application. */ Container::setInstance(new Container()); $version = '1.2.0'; $app = new Application('Laravel Valet', $version); /** * Prune missing directories and symbolic links on every command. */ if (is_dir(VALET_HOME_PATH)) { Configuration::prune(); Site::pruneLinks(); } /** * Allow Valet to be run more conveniently by allowing the Node proxy to run password-less sudo. */ $app->command('install', function () { Caddy::stop(); Configuration::install(); Caddy::install(); PhpFpm::install();