本文整理汇总了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;
}
示例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')]);
}
示例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';
}
示例4: __construct
public function __construct(Filesystem $files, FormGenerator $formGenerator)
{
parent::__construct($files);
$this->formGenerator = $formGenerator;
}
示例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;
}
示例6: __construct
/**
* Create a new command instance.
*
* @return void
*/
public function __construct(Filesystem $files)
{
parent::__construct($files);
$this->files = $files;
}
示例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;
}
示例8: __construct
/**
* Create a new command instance.
*
* @return void
*/
public function __construct(Filesystem $files)
{
parent::__construct($files);
}
示例9: __construct
/**
* @param Filesystem $fileSystem
*/
public function __construct(Filesystem $fileSystem)
{
$this->loadConfig();
parent::__construct($fileSystem);
}
示例10:
function __construct(Filesystem $file, Container $app)
{
parent::__construct($file);
$this->app = $app;
}
示例11: __construct
/**
* Create a new command instance.
*
* @param Filesystem $files
* @param Modules $module
*/
public function __construct(PackagerHelper $helper)
{
parent::__construct($helper);
$this->helper = $helper;
}