We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6c8ff commit 2eeff59Copy full SHA for 2eeff59
src/PHP/ComposerConfigRepository.php
@@ -0,0 +1,26 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace Kiboko\Component\Dockerfile\PHP;
6
7
+use Kiboko\Component\Dockerfile\Dockerfile;
8
+use Kiboko\Component\Dockerfile\Variable;
9
10
+final readonly class ComposerConfigRepository implements Dockerfile\LayerInterface, \Stringable
11
+{
12
+ public function __construct(
13
+ private string $name,
14
+ private string $type,
15
+ private string $url,
16
+ ) {
17
+ }
18
19
+ public function __toString(): string
20
+ {
21
+ return (string) new Dockerfile\Run(<<<RUN
22
+ composer config repositories.{$this->name} {$this->type} {$this->url}
23
+ RUN
24
+ );
25
26
+}
0 commit comments