Exemple #1
0
 /// <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;
 }