| @@ 45-54 (lines=10) @@ | ||
| 42 | */ |
|
| 43 | private $menuRepository; |
|
| 44 | ||
| 45 | public function __construct( |
|
| 46 | Config $configComponent, |
|
| 47 | ModelManager $modelManager, |
|
| 48 | $shopware526installed |
|
| 49 | ) { |
|
| 50 | $this->configComponent = $configComponent; |
|
| 51 | $this->modelManager = $modelManager; |
|
| 52 | $this->shopware526installed = $shopware526installed; |
|
| 53 | $this->menuRepository = Shopware()->Models()->getRepository(\Shopware\Models\Menu\Menu::class); |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @return bool |
|
| @@ 59-70 (lines=12) @@ | ||
| 56 | * @param $version |
|
| 57 | * @param Logger|null $logger |
|
| 58 | */ |
|
| 59 | public function __construct( |
|
| 60 | ModelManager $modelManager, |
|
| 61 | Pdo $db, |
|
| 62 | Logger $logger, |
|
| 63 | $version |
|
| 64 | ) { |
|
| 65 | $this->modelManager = $modelManager; |
|
| 66 | $this->db = $db; |
|
| 67 | $this->logger = $logger; |
|
| 68 | $this->version = $version; |
|
| 69 | $this->menuRepository = Shopware()->Models()->getRepository(\Shopware\Models\Menu\Menu::class); |
|
| 70 | } |
|
| 71 | ||
| 72 | public function run() |
|
| 73 | { |
|