/// <summary> /// Initializes a new instance of the <see cref="PhpPlatform"/> class. /// </summary> /// <param name="phpScriptGeneratorOptions">The options of phpScriptGenerator.</param> /// <param name="phpVersionProvider">The PHP version provider.</param> /// <param name="logger">The logger of PHP platform.</param> /// <param name="detector">The detector of PHP platform.</param> /// <param name="commonOptions">The <see cref="BuildScriptGeneratorOptions"/>.</param> /// <param name="phpComposerInstaller">The <see cref="PhpComposerInstaller"/>.</param> /// <param name="phpInstaller">The <see cref="PhpPlatformInstaller"/>.</param> public PhpPlatform( IOptions <PhpScriptGeneratorOptions> phpScriptGeneratorOptions, IOptions <BuildScriptGeneratorOptions> commonOptions, IPhpVersionProvider phpVersionProvider, ILogger <PhpPlatform> logger, IPhpPlatformDetector detector, PhpPlatformInstaller phpInstaller, PhpComposerInstaller phpComposerInstaller) { _phpScriptGeneratorOptions = phpScriptGeneratorOptions.Value; _commonOptions = commonOptions.Value; _phpVersionProvider = phpVersionProvider; _logger = logger; _detector = detector; _phpInstaller = phpInstaller; _phpComposerInstaller = phpComposerInstaller; }
public TestPhpPlatform( IOptions <PhpScriptGeneratorOptions> phpScriptGeneratorOptions, IOptions <BuildScriptGeneratorOptions> commonOptions, IPhpVersionProvider phpVersionProvider, ILogger <PhpPlatform> logger, IPhpPlatformDetector detector, PhpPlatformInstaller phpInstaller, PhpComposerInstaller phpComposerInstaller) : base( phpScriptGeneratorOptions, commonOptions, phpVersionProvider, logger, detector, phpInstaller, phpComposerInstaller) { }