|
| __construct ( $rootDir, array $parameters=[], ObjectManager $objectManager=null) |
|
| run ($applicationName, array $arguments=[]) |
|
Class EntryPoint Application entry point, used to bootstrap and run application
Definition at line 16 of file EntryPoint.php.
◆ __construct()
__construct |
( |
|
$rootDir, |
|
|
array |
$parameters = [] , |
|
|
ObjectManager |
$objectManager = null |
|
) |
| |
- Parameters
-
string | $rootDir | |
array | $parameters | |
ObjectManager | $objectManager | @SuppressWarnings(PHPMD.ExitExpression) |
Definition at line 41 of file EntryPoint.php.
47 $this->_parameters = $parameters;
◆ run()
run |
( |
|
$applicationName, |
|
|
array |
$arguments = [] |
|
) |
| |
Run a Mtf application
- Parameters
-
| $applicationName | |
array | $arguments | |
- Returns
- mixed
- Exceptions
-
Definition at line 59 of file EntryPoint.php.
62 if (!$this->_locator) {
63 $locatorFactory = new \Magento\Mtf\ObjectManagerFactory();
64 $this->_locator = $locatorFactory->create();
66 return $this->_locator->create($applicationName,
$arguments)->launch();
67 }
catch (\Exception $exception) {
68 $message =
"Error happened during application run.\n";
69 $message .= $exception->getMessage();
70 throw new \DomainException(
$message);
◆ $_locator
◆ $_parameters
◆ $_rootDir
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/functional/lib/Magento/Mtf/EntryPoint/EntryPoint.php