public function __construct(TemplateInitializer $initializer, Filesystem $files) { parent::__construct(); $this->setAliases(['template:init']); $this->templateInitializer = $initializer; $this->files = $files; }
/** * @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; }
/** * 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; }
public function __construct() { $this->signature .= ' {--page=0 : Page to begin retrieving} {--sort= : Sort criteria} {--direction= : Direction of sorting}'; parent::__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; }
/** * 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(); }
public function __construct(App $app, Filesystem $file, Composer $composer) { $this->laravel = $app; $this->file = $file; $this->composer = $composer; parent::__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; }
/** * * @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(); }
/** * @param View $view */ function __construct(Config $config, View $view, File $file) { parent::__construct(); $this->config = $config; $this->view = $view; $this->file = $file; }
/** * 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'); }
public function __construct() { // Вызвать конструктор класса Command parent::__construct(); // Записать значение аргумента в св-во $drip //$this->drip = $drip; }
/** * 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; }
/** * 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; }
/** * 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/'; }
/** * Generator constructor. */ public function __construct(DBHelper $DBHelper, PackerHelper $packerHelper, ColumnsTransformer $transformer) { parent::__construct(); $this->DBHelper = $DBHelper; $this->packerHelper = $packerHelper; $this->transformer = $transformer; }
/** * Create a new command instance. * * @return void */ public function __construct($file = 'forever.js') { parent::__construct(); $this->file = $file; $this->filePath = base_path($file); $this->options = ['-l' => storage_path('logs/forever.log'), '-o' => storage_path('logs/forever.out.log'), '-e' => storage_path('logs/forever.err.log'), '--id' => strtolower(config('app.title')), '--append' => '', '--verbose' => '']; }
/** * Create a new command instance. * @param $config * @return void */ public function __construct($config) { // Parent parent::__construct(); // Save config $this->config = $config; }
/** * Create a new command instance. * * @return void */ function __construct() { parent::__construct(); $this->prod_delete_req_repo = App::make('Giftertipster\\Repository\\ProductDeleteRequest\\ProductDeleteRequestRepositoryInterface'); $this->prod_suite_repo = App::make('Giftertipster\\Repository\\ProductSuite\\ProductSuiteRepositoryInterface'); $this->cache_refresher = App::make('Giftertipster\\Service\\Cache\\CacheRefresherInterface'); }
/** * Create a new command instance. * * @return void */ public function __construct(OccurrenceCreator $occurrenceCreator, Service $services, Carbon $carbon) { parent::__construct(); $this->occurrenceCreator = $occurrenceCreator; $this->services = $services; $this->carbon = $carbon; }
/** * Create a new command instance. * * @param \Illuminate\Filesystem\Filesystem $files * @param \Illuminate\Support\Composer $composer */ public function __construct(Filesystem $files, Composer $composer) { parent::__construct(); $this->files = $files; $this->composer = $composer; $this->inflector = Inflector::get('en'); }
/** * Create a new command instance. * * @param \Cartalyst\Sentry\Sentry $sentry * @param \Larapress\Services\Mockably $mockably * @return InstallCommand */ public function __construct(Sentry $sentry, Mockably $mockably) { parent::__construct(); $this->sentry = $sentry; $this->mockably = $mockably; $this->url = $mockably->route('larapress.home.login.get'); }
public function __construct(Filesystem $fs) { parent::__construct(); $this->fs = $fs; $this->templates = new TemplateLoader($fs); $this->argumentFormatLoader = new ArgumentFormatLoader($fs); }
/** * Create a new command instance. * * @param \Illuminate\Foundation\Application $app Laravel application object * * @return void */ public function __construct($app = null) { if (!is_array($app)) { parent::__construct(); } $this->app = $app ?: app(); }
/** * Create a new command instance. * * @param Carbon $carbon * @param Dispatcher $dispatcher * @param Log $log */ public function __construct(Carbon $carbon, Dispatcher $dispatcher, Log $log) { parent::__construct(); $this->now = $carbon->now(); $this->dispatcher = $dispatcher; $this->log = $log; }
/** * Create a new routes command instance. * * @param \Dingo\Api\Routing\Router $router * * @return void */ public function __construct(Router $router) { // Ugly, but we need to bypass the constructor and directly target the // constructor on the command class. Command::__construct(); $this->routes = $router->getRoutes(); }
/** * Create a new command instance. * @param \Illuminate\Contracts\Logging\Log $logger * @param \Illuminate\Contracts\Config\Repository $config */ public function __construct(Log $logger, Repository $config) { parent::__construct(); $this->logger = $logger; $this->config = $config; $this->clients = new \SplObjectStorage(); }
/** * Create a new command instance. * * @param Modules $module * @param Filesystem $files * @param Migrator $migrator */ public function __construct(Modules $module, Filesystem $files, Migrator $migrator) { parent::__construct(); $this->module = $module; $this->files = $files; $this->migrator = $migrator; }
/** * Create a new command instance. * * @param ChatInterface $chat */ public function __construct(ChatInterface $chat) { parent::__construct(); $this->chat = $chat; $open = function (UserInterface $user) { $name = $this->getUserName($user); $this->line("<info>" . $name . " connected.</info>"); }; $this->chat->getEmitter()->on("open", $open); $close = function (UserInterface $user) { $name = $this->getUserName($user); $this->line(" <info>" . $name . " disconnected.</info>"); }; $this->chat->getEmitter()->on("close", $close); $message = function (UserInterface $user, $message) { $name = $this->getUserName($user); $this->line("<info>New message from " . $name . ":</info><comment>" . $message . "</comment><info>.</info>"); }; $this->chat->getEmitter()->on("message", $message); $name = function (UserInterface $user, $message) { $this->line("<info>User changed their name to:</info><comment>" . $message . "</comment><info>.</info>"); }; $this->chat->getEmitter()->on("name", $name); $error = function (UserInterface $user, $exception) { $message = $exception->getMessage(); $this->line("<info>User encountered an exception:</info><comment>" . $message . "</comment><info>.</info>"); }; $this->chat->getEmitter()->on("error", $error); }
public function __construct(TransientRepositoryInterface $transient, InputParser $inputParser, Application $app) { $this->transient = $transient; $this->inputParser = $inputParser; $this->app = $app; parent::__construct(); }