mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
use getStub to allow custom stub files
This commit is contained in:
@@ -102,7 +102,7 @@ public function createConfigurationFiles($phpVersion)
|
||||
$contents = str_replace(
|
||||
['VALET_USER', 'VALET_HOME_PATH', 'valet.sock'],
|
||||
[user(), VALET_HOME_PATH, self::fpmSockName($phpVersion)],
|
||||
$this->files->get(__DIR__.'/../stubs/etc-phpfpm-valet.conf')
|
||||
$this->files->getStub('etc-phpfpm-valet.conf')
|
||||
);
|
||||
$this->files->put($fpmConfigFile, $contents);
|
||||
|
||||
@@ -112,13 +112,13 @@ public function createConfigurationFiles($phpVersion)
|
||||
|
||||
$this->files->putAsUser(
|
||||
$destDir.'/php-memory-limits.ini',
|
||||
$this->files->get(__DIR__.'/../stubs/php-memory-limits.ini')
|
||||
$this->files->getStub('php-memory-limits.ini')
|
||||
);
|
||||
|
||||
$contents = str_replace(
|
||||
['VALET_USER', 'VALET_HOME_PATH'],
|
||||
[user(), VALET_HOME_PATH],
|
||||
$this->files->get(__DIR__.'/../stubs/etc-phpfpm-error_log.ini')
|
||||
$this->files->getStub('etc-phpfpm-error_log.ini')
|
||||
);
|
||||
$this->files->putAsUser($destDir.'/error_log.ini', $contents);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user