Skip to content

Commit

Permalink
Successfully move namespace Core to Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 21, 2022
1 parent 3645428 commit 0c9160f
Show file tree
Hide file tree
Showing 20 changed files with 50 additions and 50 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "hyde/core",
"name": "hyde/framework",
"description": "The HydePHP Framework",
"license": "MIT",
"autoload": {
"psr-4": {
"Hyde\\Core\\": "src/"
"Hyde\\Framework\\": "src/"
}
},
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion src/Actions/ConvertsArrayToFrontMatter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Hyde\Core\Actions;
namespace Hyde\Framework\Actions;

class ConvertsArrayToFrontMatter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Actions/ConvertsFooterMarkdown.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Hyde\Core\Actions;
namespace Hyde\Framework\Actions;

use Illuminate\Support\Str;
use function config;
Expand Down
4 changes: 2 additions & 2 deletions src/Actions/CreatesDefaultDirectories.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Hyde\Core\Actions;
namespace Hyde\Framework\Actions;

use Hyde\Core\Hyde;
use Hyde\Framework\Hyde;
use JetBrains\PhpStorm\Pure;

class CreatesDefaultDirectories
Expand Down
4 changes: 2 additions & 2 deletions src/Actions/CreatesNewMarkdownPostFile.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Hyde\Core\Actions;
namespace Hyde\Framework\Actions;

use Hyde\Core\Hyde;
use Hyde\Framework\Hyde;
use Exception;
use Illuminate\Support\Str;

Expand Down
6 changes: 3 additions & 3 deletions src/Actions/GeneratesDocumentationSidebar.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Hyde\Core\Actions;
namespace Hyde\Framework\Actions;

use Hyde\Core\Models\DocumentationPage;
use Hyde\Core\Services\CollectionService;
use Hyde\Framework\Models\DocumentationPage;
use Hyde\Framework\Services\CollectionService;
use Illuminate\Support\Str;
use function config;

Expand Down
8 changes: 4 additions & 4 deletions src/Actions/GeneratesNavigationMenu.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Hyde\Core\Actions;
namespace Hyde\Framework\Actions;

use Hyde\Core\Features;
use Hyde\Core\Hyde;
use Hyde\Core\Models\MarkdownPage;
use Hyde\Framework\Features;
use Hyde\Framework\Hyde;
use Hyde\Framework\Models\MarkdownPage;
use Illuminate\Support\Str;
use function config;

Expand Down
4 changes: 2 additions & 2 deletions src/Actions/GetMarkdownPostList.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Hyde\Core\Actions;
namespace Hyde\Framework\Actions;

use Hyde\Core\Hyde;
use Hyde\Framework\Hyde;

/**
* Creates and returns a list of markdown paths
Expand Down
4 changes: 2 additions & 2 deletions src/Actions/MarkdownConverter.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Hyde\Core\Actions;
namespace Hyde\Framework\Actions;

use Hyde\Core\Hyde;
use Hyde\Framework\Hyde;
use League\CommonMark\CommonMarkConverter;
use League\CommonMark\Extension\GithubFlavoredMarkdownExtension;
use Torchlight\Commonmark\V2\TorchlightExtension;
Expand Down
6 changes: 3 additions & 3 deletions src/DocumentationPageParser.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Hyde\Core;
namespace Hyde\Framework;

use Hyde\Core\Hyde;
use Hyde\Core\Models\DocumentationPage;
use Hyde\Framework\Hyde;
use Hyde\Framework\Models\DocumentationPage;
use JetBrains\PhpStorm\NoReturn;
use JetBrains\PhpStorm\Pure;
use Illuminate\Support\Str;
Expand Down
2 changes: 1 addition & 1 deletion src/Features.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Hyde\Core;
namespace Hyde\Framework;

/**
* Allows features to be enabled and disabled in a simple object oriented manner.
Expand Down
2 changes: 1 addition & 1 deletion src/Hyde.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Hyde\Core;
namespace Hyde\Framework;

/**
* General interface for Hyde services
Expand Down
6 changes: 3 additions & 3 deletions src/MarkdownPageParser.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Hyde\Core;
namespace Hyde\Framework;

use Hyde\Core\Hyde;
use Hyde\Core\Models\MarkdownPage;
use Hyde\Framework\Hyde;
use Hyde\Framework\Models\MarkdownPage;
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\NoReturn;
use JetBrains\PhpStorm\Pure;
Expand Down
6 changes: 3 additions & 3 deletions src/MarkdownPostParser.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Hyde\Core;
namespace Hyde\Framework;

use Hyde\Core\Hyde;
use Hyde\Core\Models\MarkdownPost;
use Hyde\Framework\Hyde;
use Hyde\Framework\Models\MarkdownPost;
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\NoReturn;
use JetBrains\PhpStorm\Pure;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/BladePage.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Hyde\Core\Models;
namespace Hyde\Framework\Models;

/**
* A basic wrapper for the custom Blade View compiler.
Expand Down
4 changes: 2 additions & 2 deletions src/Models/DocumentationPage.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Hyde\Core\Models;
namespace Hyde\Framework\Models;

use Hyde\Core\Hyde;
use Hyde\Framework\Hyde;

/**
* A simple class that contains the content of a Documentation Page.
Expand Down
4 changes: 2 additions & 2 deletions src/Models/MarkdownPage.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Hyde\Core\Models;
namespace Hyde\Framework\Models;

use Hyde\Core\Hyde;
use Hyde\Framework\Hyde;

/**
* A simple class that contains the content of a basic Markdown Page.
Expand Down
6 changes: 3 additions & 3 deletions src/Models/MarkdownPost.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Hyde\Core\Models;
namespace Hyde\Framework\Models;

use Hyde\Core\Hyde;
use Hyde\Core\MarkdownPostParser;
use Hyde\Framework\Hyde;
use Hyde\Framework\MarkdownPostParser;
use Illuminate\Support\Collection;

/**
Expand Down
12 changes: 6 additions & 6 deletions src/Services/CollectionService.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Hyde\Core\Services;
namespace Hyde\Framework\Services;

use Hyde\Core\Hyde;
use Hyde\Core\Models\BladePage;
use Hyde\Core\Models\MarkdownPage;
use Hyde\Core\Models\MarkdownPost;
use Hyde\Core\Models\DocumentationPage;
use Hyde\Framework\Hyde;
use Hyde\Framework\Models\BladePage;
use Hyde\Framework\Models\MarkdownPage;
use Hyde\Framework\Models\MarkdownPost;
use Hyde\Framework\Models\DocumentationPage;

/**
* Contains service methods to return helpful collections of arrays and lists.
Expand Down
12 changes: 6 additions & 6 deletions src/StaticPageBuilder.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Hyde\Core;
namespace Hyde\Framework;

use JetBrains\PhpStorm\ArrayShape;
use Hyde\Core\Actions\MarkdownConverter;
use Hyde\Core\Models\DocumentationPage;
use Hyde\Core\Models\MarkdownPost;
use Hyde\Core\Models\MarkdownPage;
use Hyde\Core\Models\BladePage;
use Hyde\Framework\Actions\MarkdownConverter;
use Hyde\Framework\Models\DocumentationPage;
use Hyde\Framework\Models\MarkdownPost;
use Hyde\Framework\Models\MarkdownPage;
use Hyde\Framework\Models\BladePage;

/**
* Generates a static HTML page and saves it.
Expand Down

0 comments on commit 0c9160f

Please sign in to comment.