Skip to content

Commit da98347

Browse files
authored
Merge pull request #11 from phenixphp/release/0.3.3
Release/0.3.3
2 parents 5f244a5 + 9fa9095 commit da98347

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
# Release Notes for 0.3.x
1111

12+
## [v0.3.3 (2023-10-06)](https://github.com/phenixphp/framework/compare/0.3.2...0.3.3)
13+
14+
### Fixed
15+
- Get stubs content from framework path. ([#10](https://github.com/phenixphp/framework/pull/10))
16+
1217
## [v0.3.2 (2023-10-05)](https://github.com/phenixphp/framework/compare/0.3.1...0.3.2)
1318

1419
### Changed

src/Console/Maker.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4343
return Command::SUCCESS;
4444
}
4545

46-
$stub = File::get(base_path("src/stubs/{$this->stub()}"));
46+
$stub = $this->getStubContent();
4747
$stub = str_replace(self::SEARCH, [$namespace, $className], $stub);
4848

4949
File::put($filePath, $stub);
@@ -92,4 +92,13 @@ protected function getCustomFileName(): string|null
9292
{
9393
return null;
9494
}
95+
96+
protected function getStubContent(): string
97+
{
98+
$path = dirname(__DIR__)
99+
. DIRECTORY_SEPARATOR . 'stubs'
100+
. DIRECTORY_SEPARATOR . $this->stub();
101+
102+
return File::get($path);
103+
}
95104
}

0 commit comments

Comments
 (0)