/**
  * Constructor
  *
  * @param MagentoComposerApplicationFactory $applicationFactory
  * @param \Magento\Framework\Filesystem $filesystem
  * @param \Magento\Framework\Stdlib\DateTime $dateTime
  * @param ComposerInformation $composerInformation
  * @throws \Exception
  */
 public function __construct(MagentoComposerApplicationFactory $applicationFactory, Filesystem $filesystem, DateTime $dateTime, ComposerInformation $composerInformation)
 {
     $this->application = $applicationFactory->create();
     $this->directory = $filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
     $this->dateTime = $dateTime;
     $this->composerInformation = $composerInformation;
 }
 /**
  * Constructor
  *
  * @param MagentoComposerApplicationFactory $applicationFactory
  * @param \Magento\Framework\Filesystem $filesystem
  * @param ComposerInformation $composerInformation
  * @param ObjectManagerProvider $objectManagerProvider
  * @throws \Exception
  */
 public function __construct(MagentoComposerApplicationFactory $applicationFactory, Filesystem $filesystem, ComposerInformation $composerInformation, ObjectManagerProvider $objectManagerProvider)
 {
     $this->application = $applicationFactory->create();
     $this->directory = $filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
     $this->objectManager = $objectManagerProvider->get();
     $this->composerInformation = $composerInformation;
 }
 /**
  * Constructor
  *
  * @param MagentoComposerApplicationFactory $composerAppFactory
  * @param ComposerInformation $composerInfo
  */
 public function __construct(
     MagentoComposerApplicationFactory $composerAppFactory,
     ComposerInformation $composerInfo
 ) {
     $this->infoCommand = $composerAppFactory->createInfoCommand();
     $this->magentoComposerApplication = $composerAppFactory->create();
     $this->composerInfo = $composerInfo;
 }
 /**
  * Constructor
  *
  * @param ComposerJsonFinder $composerJsonFinder
  * @param DirectoryList $directoryList
  * @param File $file
  * @param MagentoComposerApplicationFactory $composerAppFactory
  */
 public function __construct(ComposerJsonFinder $composerJsonFinder, DirectoryList $directoryList, File $file, MagentoComposerApplicationFactory $composerAppFactory)
 {
     $this->composerJsonFinder = $composerJsonFinder;
     $this->directoryList = $directoryList;
     $this->file = $file;
     $this->requireUpdateDryRunCommand = $composerAppFactory->createRequireUpdateDryRunCommand();
     $this->magentoComposerApplication = $composerAppFactory->create();
 }
Exemplo n.º 5
0
 /**
  * @param \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator
  * @param \Magento\Framework\Composer\ComposerInformation $composerInformation
  * @param \Magento\Framework\HTTP\Client\Curl $curl
  * @param \Magento\Framework\Filesystem $filesystem
  * @param \Magento\Framework\Composer\MagentoComposerApplicationFactory $applicationFactory
  */
 public function __construct(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, \Magento\Framework\Composer\ComposerInformation $composerInformation, \Magento\Framework\HTTP\Client\Curl $curl, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\Composer\MagentoComposerApplicationFactory $applicationFactory)
 {
     $this->serviceLocator = $serviceLocator;
     $this->composerInformation = $composerInformation;
     $this->curlClient = $curl;
     $this->filesystem = $filesystem;
     $this->directory = $filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
     $this->application = $applicationFactory->create();
 }
Exemplo n.º 6
0
 /**
  * Run 'composer remove'
  *
  * @param array $packages
  * @throws \Exception
  *
  * @return string
  */
 public function remove(array $packages)
 {
     $composerApplication = $this->composerApplicationFactory->create();
     return $composerApplication->runComposerCommand(['command' => 'remove', 'packages' => $packages]);
 }
 /**
  * Constructor
  *
  * @param MagentoComposerApplicationFactory $applicationFactory
  * @throws \Exception
  */
 public function __construct(MagentoComposerApplicationFactory $applicationFactory)
 {
     $this->application = $applicationFactory->create();
     $this->composer = $this->application->createComposer();
     $this->locker = $this->composer->getLocker();
 }