当前位置: 首页>>代码示例>>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;未经允许,请勿转载。