Skip to content

Commit 08eef1b

Browse files
authored
Merge pull request #992 from hydephp/code-cleanups
Update HydeKernel array representation and method annotations
2 parents 870196f + 3b0a3b6 commit 08eef1b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

packages/framework/src/Foundation/HydeKernel.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ class HydeKernel implements SerializableContract
6767

6868
protected bool $booted = false;
6969

70-
protected array $extensions = [HydeCoreExtension::class];
70+
protected array $extensions = [
71+
HydeCoreExtension::class,
72+
];
7173

7274
public function __construct(?string $basePath = null)
7375
{
@@ -98,6 +100,7 @@ public function toArray(): array
98100
'basePath' => $this->basePath,
99101
'sourceRoot' => $this->sourceRoot,
100102
'outputDirectory' => $this->outputDirectory,
103+
'mediaDirectory' => $this->mediaDirectory,
101104
'extensions' => $this->extensions,
102105
'features' => $this->features(),
103106
'files' => $this->files(),

packages/framework/src/Hyde.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
* @method static Route|null currentRoute()
6060
* @method static HydeKernel getInstance()
6161
* @method static Filesystem filesystem()
62+
* @method static array getRegisteredExtensions()
6263
* @method static bool hasFeature(string $feature)
6364
* @method static bool hasSiteUrl()
6465
* @method static bool copy(string $from, string $to)

packages/framework/tests/Feature/HydeKernelTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ public function test_to_array_method()
277277
'basePath' => Hyde::getBasePath(),
278278
'sourceRoot' => Hyde::getSourceRoot(),
279279
'outputDirectory' => Hyde::getOutputDirectory(),
280+
'mediaDirectory' => Hyde::getMediaDirectory(),
280281
'extensions' => Hyde::getRegisteredExtensions(),
281282
'features' => Hyde::features(),
282283
'files' => Hyde::files(),

0 commit comments

Comments
 (0)