diff --git a/src/Construct.php b/src/Construct.php index 31d60bd..8552a4c 100644 --- a/src/Construct.php +++ b/src/Construct.php @@ -385,7 +385,14 @@ protected function travis() protected function license() { $file = $this->file->get(__DIR__ . '/stubs/licenses/' . strtolower($this->license) . '.txt'); - $content = str_replace(['{year}', '{name}'], [(new \DateTime())->format('Y'), $this->vendorUpper], $file); + + $user = $this->determineConfiguredGitUser(); + + $content = str_replace( + ['{year}', '{author_name}'], + [(new \DateTime())->format('Y'), $user['name']], + $file + ); $this->file->put($this->projectLower . '/' . 'LICENSE.md', $content); } diff --git a/src/stubs/licenses/mit.txt b/src/stubs/licenses/mit.txt index a4f0ef5..c37a23f 100644 --- a/src/stubs/licenses/mit.txt +++ b/src/stubs/licenses/mit.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) {year} {name} +Copyright (c) {year} {author_name} Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal