File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
app/code/Magento/Composer Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
- Magento composer lib
1
+ Magento composer library helps to instantiate Composer application and run composer commands.
Original file line number Diff line number Diff line change 11
11
use Composer \Factory as ComposerFactory ;
12
12
use Symfony \Component \Console \Output \BufferedOutput ;
13
13
14
+ /**
15
+ * Class MagentoComposerApplication
16
+ *
17
+ * This class provides ability to set composer application settings and run any composer command.
18
+ * Also provides method to get Composer instance so you can have access to composer properties lie Locker
19
+ */
14
20
class MagentoComposerApplication
15
21
{
22
+
23
+ const COMPOSER_WORKING_DIR = '--working-dir ' ;
24
+
16
25
/**
17
26
* Trigger checks config
18
27
*
@@ -41,6 +50,11 @@ class MagentoComposerApplication
41
50
*/
42
51
private $ consoleOutput ;
43
52
53
+ /**
54
+ * @var ConsoleArrayInputFactory
55
+ */
56
+ private $ consoleArrayInputFactory ;
57
+
44
58
/**
45
59
* Constructs class
46
60
*
@@ -109,7 +123,7 @@ public function runComposerCommand(array $commandParams)
109
123
110
124
$ this ->consoleApplication ->resetComposer ();
111
125
112
- $ commandParams [' --working-dir ' ] = dirname ($ this ->composerJson );
126
+ $ commandParams [self :: COMPOSER_WORKING_DIR ] = dirname ($ this ->composerJson );
113
127
114
128
$ input = $ this ->consoleArrayInputFactory ->create ($ commandParams );
115
129
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " magento/composer" ,
3
- "description" : " Magento composer library helps to instantiate Composer application and run Symfony commands." ,
3
+ "description" : " Magento composer library helps to instantiate Composer application and run composer commands." ,
4
4
"type" : " library" ,
5
5
"version" : " 0.74.0-beta8" ,
6
6
"license" : [
You can’t perform that action at this time.
0 commit comments