| @@ 84-102 (lines=19) @@ | ||
| 81 | } |
|
| 82 | } |
|
| 83 | ||
| 84 | if (!function_exists('path')) { |
|
| 85 | /** |
|
| 86 | * Get path. |
|
| 87 | * |
|
| 88 | * @param string $postfix |
|
| 89 | * |
|
| 90 | * @return string |
|
| 91 | */ |
|
| 92 | function path(string $postfix = null): string |
|
| 93 | { |
|
| 94 | $path = resolve('base_path'); |
|
| 95 | ||
| 96 | if ($postfix === null) { |
|
| 97 | return $path; |
|
| 98 | } |
|
| 99 | ||
| 100 | return $path.'/'.$postfix; |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | if (!function_exists('resources')) { |
|
| 105 | /** |
|
| @@ 104-122 (lines=19) @@ | ||
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | if (!function_exists('resources')) { |
|
| 105 | /** |
|
| 106 | * Get resources path. |
|
| 107 | * |
|
| 108 | * @param string $postfix |
|
| 109 | * |
|
| 110 | * @return string |
|
| 111 | */ |
|
| 112 | function resources(string $postfix = null): string |
|
| 113 | { |
|
| 114 | $path = resolve('resources_path'); |
|
| 115 | ||
| 116 | if ($postfix === null) { |
|
| 117 | return $path; |
|
| 118 | } |
|
| 119 | ||
| 120 | return $path.'/'.$postfix; |
|
| 121 | } |
|
| 122 | } |
|
| 123 | ||
| 124 | if (!function_exists('logger')) { |
|
| 125 | /** |
|