Author: Matthieu Napoli (matthieu@mnapoli.fr)
Inheritance: extends Symfony\Component\Console\Application
コード例 #1
0
ファイル: Application.php プロジェクト: mnapoli/silly-pimple
 public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN', PimpleInterop $container = null)
 {
     parent::__construct($name, $version);
     $container = $container ?: new PimpleInterop();
     $this->useContainer($container, true, true);
 }
コード例 #2
0
ファイル: Application.php プロジェクト: mnapoli/silly-php-di
 public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN', Container $container = null)
 {
     parent::__construct($name, $version);
     $container = $container ?: $this->createContainer();
     $this->useContainer($container, true, true);
 }
コード例 #3
0
ファイル: valet.php プロジェクト: larawhale/valet4win
/**
 * 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();
コード例 #4
0
ファイル: valet.php プロジェクト: cpriego/valet-ubuntu
/**
 * 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();
コード例 #5
0
ファイル: valet.php プロジェクト: laravel/valet
/**
 * 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();