Skip to content

Commit

Permalink
Add 'project' path to Kernel paths
Browse files Browse the repository at this point in the history
This commit adds a 'project' path to the existing paths array in Kernel.php. This new path is then initialized in the initPaths() method using the projectPath property.
  • Loading branch information
krzysztofzylka committed Dec 20, 2023
1 parent cf32d9e commit 3a34f43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Kernel
* @var array
*/
private static array $paths = [
'project' => null,
'public' => null,
'controller' => null,
'model' => null,
Expand Down Expand Up @@ -124,6 +125,7 @@ public function run(): void
*/
private function initPaths(): void
{
self::$paths['project'] = $this->projectPath;
self::$paths['public'] = $this->projectPath . '/public';
self::$paths['src'] = $this->projectPath . '/src';
self::$paths['controller'] = self::$paths['src'] . '/Controller';
Expand Down

0 comments on commit 3a34f43

Please sign in to comment.