This is a wrapper to call m2if commands programmatically

1.0.0 2021-03-29 14:29 UTC

This package is auto-updated.

Last update: 2022-10-29 03:26:27 UTC



Install the composer patch system:

composer require cweagans/composer-patches:^1.6

Then into your compose.json file the following extra data:

"extra": {
  "patches": {
    "websolute/m2if-wrapper": {
      "m2ifWrapper.patch ": "m2ifSetTokens.patch"

How to use

Just inject the following manager:

\Websolute\M2ifWrapper\Model\Wrapper $wrapper

Then use the execute(array $parameters, OutputInterface $output) method to run m2if programmatically:

// \Symfony\Component\Console\Output\Output $outputLogger
$parameters = [

$exitCode = $this->wrapper->execute($parameters, $outputLogger);