本文整理汇总了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;
}
示例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;
}
示例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;
}
示例4: __construct
public function __construct()
{
$this->signature .= ' {--page=0 : Page to begin retrieving}
{--sort= : Sort criteria}
{--direction= : Direction of sorting}';
parent::__construct();
}
示例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;
}
示例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();
}
示例7: __construct
public function __construct(App $app, Filesystem $file, Composer $composer)
{
$this->laravel = $app;
$this->file = $file;
$this->composer = $composer;
parent::__construct();
}
示例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;
}
示例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();
}
示例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');
}
示例12: __construct
public function __construct()
{
// Вызвать конструктор класса Command
parent::__construct();
// Записать значение аргумента в св-во $drip
//$this->drip = $drip;
}
示例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;
}
示例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;
}
示例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/';
}