Skip to content

Commit 9220bfe

Browse files
committed
Changed the default config.php to use @webroot and @web Yii2 aliases
Signed-off-by: Andrew Welch <andrew@nystudio107.com>
1 parent 53825c3 commit 9220bfe

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/config.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@
3434
'ffprobeOptions' => '-v quiet -print_format json -show_format -show_streams',
3535

3636
// The path where the transcoded videos are stored; must have a trailing /
37-
'transcoderPath' => '{DOCUMENT_ROOT}/transcoder/',
37+
// Yii2 aliases are supported here
38+
'transcoderPath' => '@webroot/transcoder/',
3839

3940
// The URL where the transcoded videos are stored; must have a trailing /
40-
'transcoderUrl' => '/transcoder/',
41+
// Yii2 aliases are supported here
42+
'transcoderUrl' => '@web/transcoder/',
4143

4244
// Use a md5 hash for the filenames instead of parameterized naming
4345
'useHashedNames' => false,

src/models/Settings.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,19 @@ class Settings extends Model
4747

4848
/**
4949
* The path where the transcoded videos are stored; must have a trailing /
50+
* Yii2 aliases are supported here
5051
*
5152
* @var string
5253
*/
53-
public $transcoderPath = '{DOCUMENT_ROOT}/transcoder/';
54+
public $transcoderPath = '@webroot/transcoder/';
5455

5556
/**
5657
* The URL where the transcoded videos are stored; must have a trailing /
58+
* Yii2 aliases are supported here
5759
*
5860
* @var string
5961
*/
60-
public $transcoderUrl = '/transcoder/';
62+
public $transcoderUrl = '@web/transcoder/';
6163

6264
/**
6365
* Use a md5 hash for the filenames instead of parameterized naming

0 commit comments

Comments
 (0)