Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Composer
MagentoComposerApplicationFactory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Composer
;
8
9
use
Magento\Composer\InfoCommand
;
10
use
Magento\Composer\MagentoComposerApplication
;
11
use
Magento\Composer\RequireUpdateDryRunCommand
;
12
use
Magento\Framework\App\Filesystem\DirectoryList
;
13
14
class
MagentoComposerApplicationFactory
15
{
16
20
private
$pathToComposerHome;
21
25
private
$pathToComposerJson;
26
33
public
function
__construct
(
ComposerJsonFinder
$composerJsonFinder,
DirectoryList
$directoryList)
34
{
35
$this->pathToComposerJson = $composerJsonFinder->
findComposerJson
();
36
$this->pathToComposerHome = $directoryList->
getPath
(
DirectoryList::COMPOSER_HOME
);
37
}
38
44
public
function
create
()
45
{
46
return
new
MagentoComposerApplication
($this->pathToComposerHome, $this->pathToComposerJson);
47
}
48
54
public
function
createInfoCommand
()
55
{
56
return
new
InfoCommand
($this->
create
());
57
}
58
64
public
function
createRequireUpdateDryRunCommand
()
65
{
66
return
new
RequireUpdateDryRunCommand
($this->
create
(), $this->
createInfoCommand
());
67
}
68
}
Magento\Framework\Composer\MagentoComposerApplicationFactory\__construct
__construct(ComposerJsonFinder $composerJsonFinder, DirectoryList $directoryList)
Definition:
MagentoComposerApplicationFactory.php:33
Magento\Framework\Filesystem\DirectoryList\getPath
getPath($code)
Definition:
DirectoryList.php:207
Magento\Framework\Composer\MagentoComposerApplicationFactory
Definition:
MagentoComposerApplicationFactory.php:14
Magento\Framework\Composer\MagentoComposerApplicationFactory\createInfoCommand
createInfoCommand()
Definition:
MagentoComposerApplicationFactory.php:54
Magento\Composer\MagentoComposerApplication
Definition:
MagentoComposerApplication.php:20
Magento\Framework\Composer\MagentoComposerApplicationFactory\createRequireUpdateDryRunCommand
createRequireUpdateDryRunCommand()
Definition:
MagentoComposerApplicationFactory.php:64
Magento\Composer\RequireUpdateDryRunCommand
Definition:
RequireUpdateDryRunCommand.php:12
Magento\Framework\Composer
Definition:
BufferIoFactory.php:7
Magento\Framework\App\Filesystem\DirectoryList\COMPOSER_HOME
const COMPOSER_HOME
Definition:
DirectoryList.php:110
Magento\Framework\App\Filesystem\DirectoryList
Definition:
DirectoryList.php:13
Magento\Framework\Composer\ComposerJsonFinder
Definition:
ComposerJsonFinder.php:13
Magento\Framework\Composer\ComposerJsonFinder\findComposerJson
findComposerJson()
Definition:
ComposerJsonFinder.php:36
Magento\Framework\Composer\MagentoComposerApplicationFactory\create
create()
Definition:
MagentoComposerApplicationFactory.php:44
Magento\Composer\InfoCommand
Definition:
InfoCommand.php:12