Skip to content

Commit 7be2553

Browse files
authored
Merge pull request #1 from friendsofcat/laravel-8-upgrade
Updates for Laravel 8 and PSR-4 standards
2 parents 0bc4b7b + 8318904 commit 7be2553

File tree

4 files changed

+25
-22
lines changed

4 files changed

+25
-22
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ composer.lock
44
.DS_Store
55
build
66
.phpunit.result.cache
7+
/.idea

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "friendsofcat/taxonomy",
3-
"description": "Create and manage a heirarchical taxonomy of terms within different vocabularies",
3+
"description": "Create and manage a hierarchical taxonomy of terms within different vocabularies",
44
"license": "MIT",
55
"keywords": [
66
"taxonomy",
@@ -14,7 +14,7 @@
1414
],
1515
"require": {
1616
"php": "^7.2",
17-
"illuminate/support": "^5.0|^6.0|^7.0"
17+
"illuminate/support": "^5.0|^6.0|^7.0|^8.0"
1818
},
1919
"require-dev": {
2020
"mockery/mockery": "^1.3.1",
@@ -35,4 +35,4 @@
3535
}
3636
}
3737
}
38-
}
38+
}

src/Composers/TaxonomyComposer.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Trexology\Taxonomy\Composers;
4+
5+
use Config;
6+
7+
class TaxonomyComposer
8+
{
9+
public function compose($view)
10+
{
11+
$prefix = rtrim(Config::get('taxonomy::route_prefix'), '.') . '.';
12+
13+
$layout = (object) [
14+
'extends' => Config::get('taxonomy::config.layout.extends'),
15+
'header' => Config::get('taxonomy::config.layout.header'),
16+
'content' => Config::get('taxonomy::config.layout.content'),
17+
];
18+
19+
$view->with(['prefix' => $prefix, 'layout' => $layout]);
20+
}
21+
}

src/Composers/ViewComposers.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)