Skip to content

No Possibility to add a Website/Store by an Install Script #9993

@DavidLambauer

Description

@DavidLambauer

I want to create a Website and Store with a Setup Script in a separate Module which is not possible due to the API. The Repository Interfaces do not offer any functionality to create a Store or a Website. Due to that, I always have to insert my values into the Database forced. This is the same way Magento handles the Creation of the default values for these Entities.

Is there a reason for this missing functionality? If it is just missing, I could provide a PR to add the functionality.

Preconditions

  1. Magento EE & CE 2.1.5

Steps to reproduce

  1. Clone Magento
  2. Checkout the following Repositories:

\Magento\Store\Api\StoreRepositoryInterface
\Magento\Store\Api\WebsiteRepositoryInterface
\Magento\Store\Api\GroupRepositoryInterface

IMHO: Those repositories don't follow the typical rules of DDD.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions