コード例 #1
0
 public PhpLanguageDetector(
     IOptions <PhpScriptGeneratorOptions> options,
     IPhpVersionProvider versionProvider,
     ILogger <PhpLanguageDetector> logger)
 {
     _opts            = options.Value;
     _versionProvider = versionProvider;
     _logger          = logger;
 }
コード例 #2
0
 public PhpPlatformDetector(
     IOptions <PhpScriptGeneratorOptions> options,
     IPhpVersionProvider versionProvider,
     ILogger <PhpPlatformDetector> logger,
     IStandardOutputWriter writer)
 {
     _options         = options.Value;
     _versionProvider = versionProvider;
     _logger          = logger;
     _writer          = writer;
 }
コード例 #3
0
ファイル: PhpPlatform.cs プロジェクト: yazici/Oryx
 public PhpPlatform(
     IOptions <PhpScriptGeneratorOptions> phpScriptGeneratorOptions,
     IPhpVersionProvider phpVersionProvider,
     ILogger <PhpPlatform> logger,
     PhpLanguageDetector detector)
 {
     _phpScriptGeneratorOptions = phpScriptGeneratorOptions.Value;
     _phpVersionProvider        = phpVersionProvider;
     _logger   = logger;
     _detector = detector;
 }
コード例 #4
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;
 }
コード例 #5
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>
 /// <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;
 }
コード例 #6
0
ファイル: PhpVersionProvider.cs プロジェクト: yazici/Oryx
 public PhpVersionProvider(IOptions <PhpScriptGeneratorOptions> options)
 {
     _opts = options.Value;
 }