public PhpLanguageDetector( IOptions <PhpScriptGeneratorOptions> options, IPhpVersionProvider versionProvider, ILogger <PhpLanguageDetector> logger) { _opts = options.Value; _versionProvider = versionProvider; _logger = logger; }
public PhpPlatformDetector( IOptions <PhpScriptGeneratorOptions> options, IPhpVersionProvider versionProvider, ILogger <PhpPlatformDetector> logger, IStandardOutputWriter writer) { _options = options.Value; _versionProvider = versionProvider; _logger = logger; _writer = writer; }
public PhpPlatform( IOptions <PhpScriptGeneratorOptions> phpScriptGeneratorOptions, IPhpVersionProvider phpVersionProvider, ILogger <PhpPlatform> logger, PhpLanguageDetector detector) { _phpScriptGeneratorOptions = phpScriptGeneratorOptions.Value; _phpVersionProvider = phpVersionProvider; _logger = logger; _detector = detector; }
/// <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> public PhpPlatform( IOptions <PhpScriptGeneratorOptions> phpScriptGeneratorOptions, IOptions <BuildScriptGeneratorOptions> commonOptions, IPhpVersionProvider phpVersionProvider, ILogger <PhpPlatform> logger, PhpPlatformDetector detector) { _phpScriptGeneratorOptions = phpScriptGeneratorOptions.Value; _commonOptions = commonOptions.Value; _phpVersionProvider = phpVersionProvider; _logger = logger; _detector = detector; }
/// <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> /// <param name="phpComposerVersionProvider">The <see cref="IPhpComposerVersionProvider"/>.</param> public PhpPlatform( IOptions <PhpScriptGeneratorOptions> phpScriptGeneratorOptions, IOptions <BuildScriptGeneratorOptions> commonOptions, IPhpVersionProvider phpVersionProvider, IPhpComposerVersionProvider phpComposerVersionProvider, ILogger <PhpPlatform> logger, IPhpPlatformDetector detector, PhpPlatformInstaller phpInstaller, PhpComposerInstaller phpComposerInstaller) { this.phpScriptGeneratorOptions = phpScriptGeneratorOptions.Value; this.commonOptions = commonOptions.Value; this.phpVersionProvider = phpVersionProvider; this.phpComposerVersionProvider = phpComposerVersionProvider; this.logger = logger; this.detector = detector; this.phpInstaller = phpInstaller; this.phpComposerInstaller = phpComposerInstaller; }
public PhpVersionProvider(IOptions <PhpScriptGeneratorOptions> options) { _opts = options.Value; }