Shopware\PluginCreator\Services\GeneratorFactory::getOutputDirectoryProvider PHP Method

getOutputDirectoryProvider() private method

private getOutputDirectoryProvider ( Configuration $configuration ) : CurrentOutputDirectoryProvider | LegacyOutputDirectoryProvider
$configuration Shopware\PluginCreator\Struct\Configuration
return Shopware\PluginCreator\Services\WorkingDirectoryProvider\CurrentOutputDirectoryProvider | Shopware\PluginCreator\Services\WorkingDirectoryProvider\LegacyOutputDirectoryProvider
    private function getOutputDirectoryProvider(Configuration $configuration)
    {
        $outputDirectoryProvider = new CurrentOutputDirectoryProvider(new ShopwareRootDetector(), $configuration->name);
        if ($configuration->isLegacyPlugin) {
            return new LegacyOutputDirectoryProvider(new ShopwareRootDetector(), $configuration->name, $configuration->namespace);
        }
        return $outputDirectoryProvider;
    }