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