Skip to content

Commit

Permalink
Create new internal trait for transitioning to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 26, 2024
1 parent 8cfe0cd commit 89d0e52
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/framework/src/Hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Hyde\Enums\Feature;
use Hyde\Facades\Features;
use Hyde\Foundation\HydeKernel;
use Hyde\Support\V1Compatibility;
use Illuminate\Support\Collection;
use Hyde\Foundation\Kernel\FileCollection;
use Hyde\Foundation\Kernel\Filesystem;
Expand Down Expand Up @@ -79,6 +80,8 @@
*/
class Hyde extends Facade
{
use V1Compatibility;

public static function version(): string
{
return HydeKernel::version();
Expand Down
15 changes: 15 additions & 0 deletions packages/framework/src/Support/V1Compatibility.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace Hyde\Support;

/**
* @internal Hyde Facade support to aid in the v1 to v2 transition.
*
* @deprecated All code here is deprecated, and exists to help you transition.
*/
trait V1Compatibility
{
//
}

0 comments on commit 89d0e52

Please sign in to comment.