當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Application::version方法代碼示例

本文整理匯總了PHP中Illuminate\Contracts\Foundation\Application::version方法的典型用法代碼示例。如果您正苦於以下問題:PHP Application::version方法的具體用法?PHP Application::version怎麽用?PHP Application::version使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Contracts\Foundation\Application的用法示例。


在下文中一共展示了Application::version方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getArtisan

 /**
  * Get the Artisan application instance.
  *
  * @return \Illuminate\Console\Application
  */
 protected function getArtisan()
 {
     if (is_null($this->artisan)) {
         return $this->artisan = (new Artisan($this->app, $this->events, $this->app->version()))->resolveCommands($this->commands);
     }
     return $this->artisan;
 }
開發者ID:qasem2rubik,項目名稱:laravel,代碼行數:12,代碼來源:Kernel.php

示例2: __construct

 /**
  * Create a new Artisan console application.
  *
  * @param  \Illuminate\Contracts\Foundation\Application  $laravel
  * @param  \Illuminate\Contracts\Events\Dispatcher  $events
  * @return void
  */
 public function __construct(LaravelApplication $laravel, Dispatcher $events)
 {
     parent::__construct('Laravel Framework', $laravel->version());
     $this->laravel = $laravel;
     $this->setAutoExit(false);
     $this->setCatchExceptions(false);
     $events->fire('artisan.start', [$this]);
 }
開發者ID:eunicon,項目名稱:meetup,代碼行數:15,代碼來源:Application.php

示例3: writeSettings

 protected function writeSettings()
 {
     $settings = $this->application->make('Flarum\\Settings\\SettingsRepositoryInterface');
     $this->info('Writing default settings');
     $settings->set('version', $this->application->version());
     foreach ($this->settings as $k => $v) {
         $settings->set($k, $v);
     }
 }
開發者ID:Luceos,項目名稱:core,代碼行數:9,代碼來源:InstallCommand.php

示例4: __construct

 /**
  * Create a new Artisan console application.
  *
  * @param  \Illuminate\Contracts\Foundation\Application $laravel
  * @param  \Illuminate\Contracts\Events\Dispatcher      $events
  * @return Application
  */
 public function __construct(LaravelApplication $laravel, Dispatcher $events)
 {
     SymfonyApplication::__construct('NewUp', $laravel->version());
     $this->event = $events;
     $this->laravel = $laravel;
     $this->setAutoExit(false);
     $this->setCatchExceptions(false);
     $events->fire('artisan.start', [$this]);
 }
開發者ID:newup,項目名稱:core,代碼行數:16,代碼來源:Application.php

示例5: index

 /**
  * index.
  *
  * @param \Illuminate\Contracts\Foundation\Application $app
  * @param \Recca0120\Terminal\Kernel                   $kernel
  * @param \Illuminate\Http\Request                     $request
  * @param \Illuminate\Contracts\Response\Factory       $responseFactory
  * @param \Illuminate\Contracts\Routing\UrlGenerator   $urlGenerator
  * @param string                                       $view
  *
  * @return mixed
  */
 public function index(Application $app, Kernel $kernel, Request $request, ResponseFactory $responseFactory, UrlGenerator $urlGenerator, $view = 'index')
 {
     $kernel->call('--ansi');
     $csrfToken = null;
     if ($request->hasSession() === true) {
         $csrfToken = $request->session()->token();
     }
     $options = json_encode(['csrfToken' => $csrfToken, 'username' => 'LARAVEL', 'hostname' => php_uname('n'), 'os' => PHP_OS, 'basePath' => $app->basePath(), 'environment' => $app->environment(), 'version' => $app->version(), 'endpoint' => $urlGenerator->action('\\' . static::class . '@endpoint'), 'helpInfo' => $kernel->output(), 'interpreters' => ['mysql' => 'mysql', 'artisan tinker' => 'tinker', 'tinker' => 'tinker'], 'confirmToProceed' => ['artisan' => ['migrate', 'migrate:install', 'migrate:refresh', 'migrate:reset', 'migrate:rollback', 'db:seed']]]);
     $id = $view === 'panel' ? Str::random(30) : null;
     return $responseFactory->view('terminal::' . $view, compact('options', 'resources', 'id'));
 }
開發者ID:recca0120,項目名稱:terminal,代碼行數:23,代碼來源:TerminalController.php


注:本文中的Illuminate\Contracts\Foundation\Application::version方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。