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


PHP Command::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct(TemplateInitializer $initializer, Filesystem $files)
 {
     parent::__construct();
     $this->setAliases(['template:init']);
     $this->templateInitializer = $initializer;
     $this->files = $files;
 }
開發者ID:newup,項目名稱:core,代碼行數:7,代碼來源:Init.php

示例2: __construct

 /**
  * @param PermissionManagerInterface $permissionManager
  * @param Repository $cache
  * @param ConfigRepository $config
  */
 public function __construct(PermissionManagerInterface $permissionManager, Repository $cache, ConfigRepository $config)
 {
     parent::__construct();
     $this->permissionManager = $permissionManager;
     $this->cache = $cache;
     $this->config = $config;
 }
開發者ID:morilog,項目名稱:acl,代碼行數:12,代碼來源:ClearPermissions.php

示例3: __construct

 /**
  * Create a new command instance.
  */
 public function __construct(CLImate $cli, Ubench $bench, IpUtils $ipUtils)
 {
     parent::__construct();
     $this->cli = $cli;
     $this->bench = $bench;
     $this->ipUtils = $ipUtils;
 }
開發者ID:BGPView,項目名稱:Backend-API,代碼行數:10,代碼來源:UpdateIXs.php

示例4: __construct

 public function __construct()
 {
     $this->signature .= ' {--page=0 : Page to begin retrieving}
                           {--sort= : Sort criteria}
                           {--direction= : Direction of sorting}';
     parent::__construct();
 }
開發者ID:hussainweb,項目名稱:drupal-stats,代碼行數:7,代碼來源:GetCommandBase.php

示例5: __construct

 /**
  * RunCommand constructor.
  * @param JobContract $jobRepo
  * @param ConnectorLoggerInterface $logger
  */
 public function __construct(JobContract $jobRepo, ConnectorLoggerInterface $logger)
 {
     parent::__construct();
     $this->jobRepo = $jobRepo;
     $this->manager = app(Manager::class);
     $this->logger = $logger;
 }
開發者ID:unifact,項目名稱:connector,代碼行數:12,代碼來源:RunCommand.php

示例6: __construct

 /**
  * Create a new command instance.
  */
 public function __construct(Ubench $bench, IpUtils $ipUtils)
 {
     parent::__construct();
     $this->bench = $bench;
     $this->ipUtils = $ipUtils;
     $this->esClient = ClientBuilder::create()->setHosts(config('elasticsearch.hosts'))->build();
 }
開發者ID:BGPView,項目名稱:Backend-API,代碼行數:10,代碼來源:GenerateGraphs.php

示例7: __construct

 public function __construct(App $app, Filesystem $file, Composer $composer)
 {
     $this->laravel = $app;
     $this->file = $file;
     $this->composer = $composer;
     parent::__construct();
 }
開發者ID:thirdgerb,項目名稱:commune-framework,代碼行數:7,代碼來源:ProjectCreateCommand.php

示例8: __construct

 /**
  * Create a new command instance.
  * 
  * @param View   $view
  * @param File   $file
  * @param string $migrationsFolderPath
  */
 public function __construct(View $view, File $file, $migrationsFolderPath)
 {
     parent::__construct();
     $this->view = $view;
     $this->file = $file;
     $this->migrationsFolderPath = $migrationsFolderPath;
 }
開發者ID:HivenKay,項目名稱:laravel-stapler,代碼行數:14,代碼來源:FastenCommand.php

示例9: __construct

 /**
  *
  * @param \Illuminate\Config\Repository $config
  * @param \Illuminate\Filesystem\Filesystem $files
  * @param \Illuminate\View\Factory $view
  */
 public function __construct(ConfigRepository $config, Filesystem $files, $view)
 {
     $this->config = $config;
     $this->files = $files;
     $this->view = $view;
     parent::__construct();
 }
開發者ID:danncsc,項目名稱:DaanX,代碼行數:13,代碼來源:GeneratorCommand.php

示例10:

 /**
  * @param View $view
  */
 function __construct(Config $config, View $view, File $file)
 {
     parent::__construct();
     $this->config = $config;
     $this->view = $view;
     $this->file = $file;
 }
開發者ID:simmatrix,項目名稱:laravel-query-builder-templates,代碼行數:10,代碼來源:TemplateFactoryGeneratorCommand.php

示例11: __construct

 /**
  * Create a new command instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $app = app();
     // 目錄錯誤 應該是父目錄 -8 => -17
     $app['view']->addNamespace('workflow', substr(__DIR__, 0, -17) . 'views');
 }
開發者ID:davin-bao,項目名稱:workflow,代碼行數:12,代碼來源:MigrationCommand.php

示例12: __construct

 public function __construct()
 {
     // Вызвать конструктор класса Command
     parent::__construct();
     // Записать значение аргумента в св-во $drip
     //$this->drip = $drip;
 }
開發者ID:4gekkman,項目名稱:M2,代碼行數:7,代碼來源:T2_limitator.php

示例13: __construct

 /**
  * Create a new command instance.
  *
  * @param \Illuminate\Filesystem\Filesystem
  *
  * @return void
  */
 public function __construct(Filesystem $files)
 {
     parent::__construct();
     $this->deletable = time() - 60 * 60 * 1.5;
     $this->base = storage_path('releases');
     $this->files = $files;
 }
開發者ID:bigbitecreative,項目名稱:paddle,代碼行數:14,代碼來源:ClearOld.php

示例14: __construct

 /**
  * Create a new command instance.
  *
  * @return void
  */
 public function __construct(YoService $yoService, UserService $userService, GitHubService $gitHubService)
 {
     parent::__construct();
     $this->yoService = $yoService;
     $this->userService = $userService;
     $this->gitHubService = $gitHubService;
 }
開發者ID:illuminate3,項目名稱:Saborunayo,代碼行數:12,代碼來源:SaborunaYo.php

示例15: __construct

 /**
  * Create a new command instance.
  * @param Filesystem $files
  * @param Composer $composer
  */
 public function __construct(Filesystem $files, Composer $composer)
 {
     parent::__construct();
     $this->files = $files;
     $this->composer = $composer;
     $this->STUBS_PATH = __DIR__ . '/../stubs/';
 }
開發者ID:phucpm,項目名稱:generators,代碼行數:12,代碼來源:ModuleMakeCommand.php


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