Skip to content

Commit e364ac3

Browse files
Updated installer example to be docker friendly
1 parent 897879d commit e364ac3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ return call_user_func(static function() {
5050

5151
$filesystem = new Filesystem();
5252
$variableReplacer = new FramedStringReplace();
53+
$componentName = basename(shell_exec("git config --get remote.origin.url"), '.git');
5354

5455
(new StepExecutor(
5556
new SequentialCollection(
@@ -62,8 +63,8 @@ return call_user_func(static function() {
6263
__DIR__ . '/..',
6364
[
6465
'vendor' => 'codenamephp',
65-
'componentName' => basename(__DIR__ . '/..'),
66-
'namespace' => implode('\\', array_merge(['de', 'codenamephp'], explode('.', basename(__DIR__ . '/..'))))
66+
'componentName' => $componentName,
67+
'namespace' => implode('\\', array_merge(['de', 'codenamephp'], explode('.', $componentName)))
6768
]
6869
),
6970
new DeleteFilesAndFolders($filesystem, [

0 commit comments

Comments
 (0)