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


PHP GeneratorCommand::__construct方法代碼示例

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


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

示例1: __construct

 /**
  * Constructor
  *
  * @author Verron Knowles <Verron.Knowles@develme.com>
  * @param $container
  * @param $files
  * @param $database
  * @param $config
  * @return void
  */
 public function __construct(Container $container, FileSystem $files, DatabaseManager $database, ConfigRepository $config)
 {
     parent::__construct($files);
     $this->app = $container;
     $this->database = $database;
     $this->config = $config;
 }
開發者ID:develme,項目名稱:schema-wireframe,代碼行數:17,代碼來源:SchemaGeneratorCommand.php

示例2: __construct

 /**
  * @param Filesystem $files
  * @param Composer $composer
  * @param Repository $config
  */
 public function __construct(Filesystem $files, Composer $composer, Repository $config)
 {
     parent::__construct($files);
     $this->config = $config;
     $this->composer = $composer;
     $this->settings = new Fluent(['paths' => $config->get('broadway.generators.paths')]);
 }
開發者ID:madewithlove,項目名稱:laravel-cqrs-es,代碼行數:12,代碼來源:AbstractGeneratorCommand.php

示例3: __construct

 /**
  * Create a new config clear command instance.
  *
  * @param Filesystem $files
  */
 public function __construct(Filesystem $files)
 {
     parent::__construct($files);
     $this->useEloquent = config('json-api.generator.use-eloquent', true);
     $this->subNamespace = config('json-api.generator.namespace', 'JsonApi');
     $this->namespaceByResource = config('json-api.generator.by-resource', true);
     $this->stubsDirectory = __DIR__ . '/../../../stubs';
 }
開發者ID:cloudcreativity,項目名稱:laravel-json-api,代碼行數:13,代碼來源:AbstractGeneratorCommand.php

示例4: __construct

 public function __construct(Filesystem $files, FormGenerator $formGenerator)
 {
     parent::__construct($files);
     $this->formGenerator = $formGenerator;
 }
開發者ID:zgao4,項目名稱:laravel-form-builder,代碼行數:5,代碼來源:FormMakeCommand.php

示例5: __construct

 /**
  * Set the dependencies.
  *
  * @param  \Illuminate\Filesystem\Filesystem  $files
  * @return void
  */
 public function __construct(Filesystem $files, PipelineRepositoryInterface $pipelines, InflectorInterface $inflector)
 {
     parent::__construct($files);
     $this->pipelines = $pipelines;
     $this->inflector = $inflector;
 }
開發者ID:haoljp,項目名稱:Workflow,代碼行數:12,代碼來源:WorkflowGeneratorCommand.php

示例6: __construct

 /**
  * Create a new command instance.
  *
  * @return void
  */
 public function __construct(Filesystem $files)
 {
     parent::__construct($files);
     $this->files = $files;
 }
開發者ID:bluegeek,項目名稱:route-for-laravel,代碼行數:10,代碼來源:MakeRoute.php

示例7: __construct

 /**
  * Create a new command instance.
  *
  * @param  \Illuminate\Filesystem\Filesystem  $files
  * @param  \Illuminate\Foundation\Composer  $composer
  * @return void
  */
 public function __construct(Filesystem $files, Composer $composer)
 {
     parent::__construct($files);
     $this->composer = $composer;
 }
開發者ID:qasem2rubik,項目名稱:laravel,代碼行數:12,代碼來源:SeederMakeCommand.php

示例8: __construct

 /**
  * Create a new command instance.
  *
  * @return void
  */
 public function __construct(Filesystem $files)
 {
     parent::__construct($files);
 }
開發者ID:HOuaghad,項目名稱:multilayering,代碼行數:9,代碼來源:MakeDatalayerClass.php

示例9: __construct

 /**
  * @param Filesystem $fileSystem
  */
 public function __construct(Filesystem $fileSystem)
 {
     $this->loadConfig();
     parent::__construct($fileSystem);
 }
開發者ID:czim,項目名稱:laravel-repository,代碼行數:8,代碼來源:MakeRepositoryCommand.php

示例10:

 function __construct(Filesystem $file, Container $app)
 {
     parent::__construct($file);
     $this->app = $app;
 }
開發者ID:triasbrata,項目名稱:ModuleGenerator,代碼行數:5,代碼來源:GeneratorCommand.php

示例11: __construct

 /**
  * Create a new command instance.
  *
  * @param Filesystem $files
  * @param Modules $module
  */
 public function __construct(PackagerHelper $helper)
 {
     parent::__construct($helper);
     $this->helper = $helper;
 }
開發者ID:filipveschool,項目名稱:packagegenerator,代碼行數:11,代碼來源:MakeConfigCommand2.php


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