Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Remove Class Reference

Public Member Functions

 __construct (MagentoComposerApplicationFactory $composerApplicationFactory)
 
 remove (array $packages)
 

Detailed Description

Class to run composer remove command

Definition at line 13 of file Remove.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( MagentoComposerApplicationFactory  $composerApplicationFactory)

Constructor

Parameters
MagentoComposerApplicationFactory$composerApplicationFactory

Definition at line 27 of file Remove.php.

29  {
30  $this->composerApplicationFactory = $composerApplicationFactory;
31  }

Member Function Documentation

◆ remove()

remove ( array  $packages)

Run 'composer remove'

Parameters
array$packages
Exceptions

Definition at line 41 of file Remove.php.

42  {
43  $composerApplication = $this->composerApplicationFactory->create();
44 
45  return $composerApplication->runComposerCommand(
46  [
47  'command' => 'remove',
48  'packages' => $packages,
49  '--no-update' => true,
50  ]
51  );
52  }

The documentation for this class was generated from the following file: