Skip to content

Commit

Permalink
Merge pull request #568 from hydephp/develop
Browse files Browse the repository at this point in the history
HydePHP v1.0.0 - Release Candidate Seven
  • Loading branch information
caendesilva authored Mar 14, 2023
2 parents c7f48e4 + 1adecb9 commit a4862f0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion resources/views/pages/404.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
Sorry, the page you are looking for could not be found.
</p>

<a href="{{ config('hyde.url') ?? './' }}">
<a href="{{ Routes::get('index') ?? './' }}">
<button
class="bg-transparent text-grey-darkest font-bold uppercase tracking-wide py-3 px-6 border-2 border-grey-light hover:border-grey rounded-lg">
Go Home
Expand Down
2 changes: 1 addition & 1 deletion src/Foundation/HydeKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class HydeKernel implements SerializableContract
use Serializable;
use Macroable;

final public const VERSION = '1.0.0-RC.6';
final public const VERSION = '1.0.0-RC.7';

protected static self $instance;

Expand Down
8 changes: 4 additions & 4 deletions src/Framework/Concerns/RegistersFileLocations.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ trait RegistersFileLocations
*
* @example registerSourceDirectories([HydePage::class => '_pages'])
*
* @param array $directoryMapping{class: string<HydePage>, location: string}
* @param array<class-string<HydePage>, string> $directoryMapping
*/
protected function registerSourceDirectories(array $directoryMapping): void
{
/** @var class-string<HydePage> $class */
foreach ($directoryMapping as $class => $location) {
/** @var HydePage $class */
$class::setSourceDirectory(unslash(Hyde::getSourceRoot().'/'.unslash($location)));
}
}
Expand All @@ -51,12 +51,12 @@ protected function registerSourceDirectories(array $directoryMapping): void
*
* @example registerOutputDirectories([HydePage::class => 'docs'])
*
* @param array $directoryMapping{class: string<HydePage>, location: string}
* @param array<class-string<HydePage>, string> $directoryMapping
*/
protected function registerOutputDirectories(array $directoryMapping): void
{
/** @var class-string<HydePage> $class */
foreach ($directoryMapping as $class => $location) {
/** @var HydePage $class */
$class::setOutputDirectory(unslash($location));
}
}
Expand Down
7 changes: 4 additions & 3 deletions src/Hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Hyde\Foundation\Kernel\RouteCollection;
use Hyde\Pages\Concerns\HydePage;
use Hyde\Support\Models\Route;
use Hyde\Support\Filesystem\SourceFile;
use Illuminate\Support\Facades\Facade;
use Illuminate\Support\HtmlString;
use JetBrains\PhpStorm\Pure;
Expand Down Expand Up @@ -49,9 +50,9 @@
* @method static string getMediaDirectory()
* @method static string getMediaOutputDirectory()
* @method static Features features()
* @method static FileCollection files()
* @method static PageCollection pages()
* @method static RouteCollection routes()
* @method static FileCollection<SourceFile> files()
* @method static PageCollection<HydePage> pages()
* @method static RouteCollection<Route> routes()
* @method static Route|null currentRoute()
* @method static HydeKernel getInstance()
* @method static Filesystem filesystem()
Expand Down

0 comments on commit a4862f0

Please sign in to comment.