Constructor.
public __construct ( string | null $name = null ) | ||
$name | string | null | The name of the command; passing null means it must be set in configure() |
/** * @param TransferFunds $useCase * @param EwalletExtension $formatter */ public function __construct(TransferFunds $useCase, MemberFormatter $formatter) { parent::__construct(); $this->formatter = $formatter; $this->useCase = $useCase; $this->useCase->attach($this); }
/** * @param UserRepository $userRepository * @param ReviewRepository $reviewRepository * @param ScoreManager $scoreManager */ public function __construct(UserRepository $userRepository, ReviewRepository $reviewRepository, ScoreManager $scoreManager) { parent::__construct(); $this->userRepository = $userRepository; $this->reviewRepository = $reviewRepository; $this->scoreManager = $scoreManager; }
/** * @param IUserManager $userManager * @param IDBConnection $dbConnection */ function __construct(IUserManager $userManager, IGroupManager $groupManager, IDBConnection $dbConnection) { parent::__construct(); $this->userManager = $userManager; $this->groupManager = $groupManager; $this->dbConnection = $dbConnection; }
public function __construct(SlackService $slack) { parent::__construct(); $this->emitter = $slack->getEmitter(); $this->loop = $slack->getLoop(); $this->slack = $slack; }
/** * Constructor, used for Command * * @param string $name */ public function __construct($name = null) { parent::__construct($name); $this->_mustache = new \Mustache_Engine(); $this->_rootDir = dirname(__FILE__); $this->_swaggerSource = json_decode(file_get_contents(App::ENDPOINT . App::VERSION . self::SOURCE_URI), true); }
public function __construct(Service\System\Import $importService, Connection $connection, LoggerInterface $logger) { parent::__construct(); $this->importService = $importService; $this->connection = $connection; $this->logger = $logger; }
public function __construct(DrupalApi $drupalApi, Client $httpClient, $appRoot) { $this->drupalApi = $drupalApi; $this->httpClient = $httpClient; $this->appRoot = $appRoot; parent::__construct(); }
/** * class constructor. get $Silex argument and set it to property. this must be set in Commands.php file to make it work. * * @param string | null $name The name of the command; passing null means it must be set in configure() * @param \Silex\Application $SilexApp The Silex application class which is contain database class in there. */ public function __construct($name = null, \Silex\Application $SilexApp = null) { parent::__construct($name); $this->Silexapp = $SilexApp; $this->Db = $this->Silexapp['Db']; unset($SilexApp); }
public function __construct(Router $router, RoutingContextInterface $context, RequestScopeManager $scope) { parent::__construct(); $this->router = $router; $this->context = $context; $this->requestScope = $scope; }
public function __construct(IUserManager $userManager, IManager $shareManager, IMountManager $mountManager) { $this->userManager = $userManager; $this->shareManager = $shareManager; $this->mountManager = $mountManager; parent::__construct(); }
/** * TravisCiCommand constructor. * @param TravisCiQuestionHelper $questionHelper * @param ConfigBuilder|null $configBuilder * @param ConfigWriter $configWriter * @throws \Symfony\Component\Console\Exception\LogicException */ public function __construct(TravisCiQuestionHelper $questionHelper, ConfigBuilder $configBuilder, ConfigWriter $configWriter) { parent::__construct('ci:travis-ci'); $this->configBuilder = $configBuilder; $this->configWriter = $configWriter; $this->questionHelper = $questionHelper; }
/** * @param GrumPHP $config * @param Filesystem $filesystem * @param Repository $repository */ public function __construct(GrumPHP $config, Filesystem $filesystem, Repository $repository) { parent::__construct(); $this->config = $config; $this->filesystem = $filesystem; $this->repository = $repository; }
/** * Construct an instance of a CleanCommand. */ public function __construct() { parent::__construct('style:clean'); $this->setDescription('Runs all fix and format operations.'); $this->addOption('dry-run', null, InputOption::VALUE_NONE, 'Pretend to run and show operation that would be performed.'); $this->addOption('diff', null, InputOption::VALUE_NONE, 'Show diff of changes.'); }
public function __construct(\OCA\User_Files_Restore\Db\RequestMapper $requestMapper) { $this->requestMapper = $requestMapper; $this->searchedStatus = null; $this->csv = FALSE; parent::__construct(); }
/** * @param string $name * @param ContainerInterface $dic * * @throws \Symfony\Component\Console\Exception\InvalidArgumentException * @throws \Symfony\Component\Console\Exception\LogicException */ public function __construct(string $name, ContainerInterface $dic) { $this->setDescription('Used to setup Yapeal-ng after Composer require or to interactively do so any time'); $this->setName($name); $this->setDic($dic); parent::__construct($name); }
public function __construct() { parent::__construct(); $this->config = new Config(); $this->source = new XMLRepository(); $this->source->setConfig($this->config); }
/** * PluginTypeYamlCommand constructor. * @param Manager $extensionManager * @param PluginTypeYamlGenerator $generator * @param StringConverter $stringConverter */ public function __construct(Manager $extensionManager, PluginTypeYamlGenerator $generator, StringConverter $stringConverter) { $this->extensionManager = $extensionManager; $this->generator = $generator; $this->stringConverter = $stringConverter; parent::__construct(); }
public function __construct(FactoryInterface $factory, Repository\ActionInterface $actionRepository, Repository\ConnectionInterface $connectionRepository) { parent::__construct(); $this->factory = $factory; $this->actionRepository = $actionRepository; $this->connectionRepository = $connectionRepository; }
public function __construct(array $defaults, array $environments, array $scalingProfiles) { $this->defaults = $defaults; $this->environments = $environments; $this->scalingProfiles = $scalingProfiles; parent::__construct(); }
/** * EditCommand constructor. * @param ConfigFactory $configFactory * @param CachedStorage $configStorage * @param ConfigurationManager $configurationManager */ public function __construct(ConfigFactory $configFactory, CachedStorage $configStorage, ConfigurationManager $configurationManager) { $this->configFactory = $configFactory; $this->configStorage = $configStorage; $this->configurationManager = $configurationManager; parent::__construct(); }
/** * @param Dependency $sampleDataDependency * @param \Magento\Framework\Module\ModuleResource $moduleResource * @param \Magento\Framework\Module\PackageInfo $packageInfo */ public function __construct(Dependency $sampleDataDependency, \Magento\Framework\Module\ModuleResource $moduleResource, \Magento\Framework\Module\PackageInfo $packageInfo) { $this->sampleDataDependency = $sampleDataDependency; $this->moduleResource = $moduleResource; $this->packageInfo = $packageInfo; parent::__construct(); }
/** * LoginUrlCommand constructor. * @param Site $site * @param EntityTypeManagerInterface $entityTypeManager * @param ModuleHandlerInterface $moduleHandler */ public function __construct(Site $site, EntityTypeManagerInterface $entityTypeManager, ModuleHandlerInterface $moduleHandler) { $this->site = $site; $this->entityTypeManager = $entityTypeManager; $this->moduleHandler = $moduleHandler; parent::__construct(); }
/** * @param IDriver $driver * @param string $dir * @param array $phpParams (name => value) */ public function __construct(IDriver $driver, $dir, $phpParams = []) { parent::__construct(); $this->driver = $driver; $this->dir = $dir; $this->phpParams = $phpParams; }
public function __construct(SymfonyFileSystem $symfonyFileSystem, IliosFileSystem $iliosFileSystem, LearningMaterialManager $learningMaterialManager) { $this->symfonyFileSystem = $symfonyFileSystem; $this->iliosFileSystem = $iliosFileSystem; $this->learningMaterialManager = $learningMaterialManager; parent::__construct(); }
/** * DeleteCommand constructor. * @param ConfigFactory $configFactory * @param CachedStorage $configStorage * @param FileStorage $configStorageSync */ public function __construct(ConfigFactory $configFactory, CachedStorage $configStorage, FileStorage $configStorageSync) { $this->configFactory = $configFactory; $this->configStorage = $configStorage; $this->configStorageSync = $configStorageSync; parent::__construct(); }
/** * @param Util $util * @param IConfig $config * @param QuestionHelper $questionHelper */ public function __construct(Util $util, IConfig $config, QuestionHelper $questionHelper) { $this->util = $util; $this->config = $config; $this->questionHelper = $questionHelper; parent::__construct(); }
public function __construct() { parent::__construct('DLR - Dedupe, Link and Remap'); global $dbCreds; $this->pdo = new SimplePdo($dbCreds); $this->db = $this->initDb(new Capsule()); }
public function __construct(EntityManager $em, ServiceProviderChain $serviceProviderChain) { $this->serviceProviderChain = $serviceProviderChain; $this->serviceProviderRepository = $em->getRepository('BxavServiceHandlerBundle:ServiceProvider'); $this->em = $em; parent::__construct(); }
/** * PermissionCommand constructor. * @param Manager $extensionManager * @param StringConverter $stringConverter */ public function __construct(Manager $extensionManager, StringConverter $stringConverter, PermissionGenerator $permissionGenerator) { $this->extensionManager = $extensionManager; $this->stringConverter = $stringConverter; $this->generator = $permissionGenerator; parent::__construct(); }
/** * @param Engine $engine * @param FileRender $fileRender * @param OutputInterface $output */ public function __construct(Engine $engine, FileRender $fileRender, OutputInterface $output) { $this->engine = $engine; $this->fileRender = $fileRender; $this->output = $output; parent::__construct(); }