Skip to content

Where can I get Magento_SampleData module #1302

@Vinai

Description

@Vinai

Hi,

in the latest develop branch \Magento\Setup\Model\Installer the following code can be found:

if (!empty($request[InstallCommand::INPUT_KEY_USE_SAMPLE_DATA]) && $this->sampleData->isDeployed()) {
    $script[] = ['Installing sample data:', 'installSampleData', [$request]];
}

The \Magento\Setup\Model\SampleData::isDeployed() method checks it a module Magento\SampleData is present.

public function isDeployed()
{
    return file_exists($this->directoryList->getPath(DirectoryList::MODULES) . self::PATH);
}

If I read that correctly, a sample data module needs to exist at app/code/Magento/SampleData.
However, installing the sample data via composer by using

% composer config repositories.magento composer http://packages.magento.com
% composer require magento/sample-data:0.74.0-beta9
% composer update

installs dev/tools/Magento/Tools/SampleData, which is not a regular Magento 2 module, plus, of course it's not in the app/code branch.

I've been busy with non-Magnto2 work for a while and probably missed this change in how to install the sample data. But I can't see a more recent version on http://packages.magento.com, and the sample data installation instructions show no change either.
Can you please shed some light on where to get the Magento_SampleData module? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions