Factory.php
41 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Piwik - free/libre analytics platform |
| 4 | * |
| 5 | * @link https://matomo.org |
| 6 | * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 7 | */ |
| 8 | namespace Piwik\Updater\Migration; |
| 9 | |
| 10 | use Interop\Container\ContainerInterface; |
| 11 | use Piwik\Common; |
| 12 | use Piwik\Updater\Migration\Db\Factory as DbFactory; |
| 13 | use Piwik\Updater\Migration\Plugin\Factory as PluginFactory; |
| 14 | |
| 15 | /** |
| 16 | * Migration factory to create various migrations that implement the Migration interface. |
| 17 | * |
| 18 | * @api |
| 19 | */ |
| 20 | class Factory |
| 21 | { |
| 22 | /** |
| 23 | * @var DbFactory |
| 24 | */ |
| 25 | public $db; |
| 26 | |
| 27 | /** |
| 28 | * @var PluginFactory |
| 29 | */ |
| 30 | public $plugin; |
| 31 | |
| 32 | /** |
| 33 | * @ignore |
| 34 | */ |
| 35 | public function __construct(DbFactory $dbFactory, PluginFactory $pluginFactory) |
| 36 | { |
| 37 | $this->db = $dbFactory; |
| 38 | $this->plugin = $pluginFactory; |
| 39 | } |
| 40 | } |
| 41 |