Skip to content

Commit

Permalink
Moving the NamespacedEntity trait to Core module
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Jul 21, 2016
1 parent 8b95e88 commit 1fdd936
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
3 changes: 1 addition & 2 deletions Tests/TagManagerRepositoryTest.php
Expand Up @@ -4,7 +4,6 @@

use Modules\Tag\Contracts\TaggableInterface;
use Modules\Tag\Repositories\TagManager;
use Modules\Tag\Traits\NamespacedEntity;
use Modules\Tag\Traits\TaggableTrait;

class TagManagerRepositoryTest extends BaseTestCase
Expand Down Expand Up @@ -38,6 +37,6 @@ public function it_adds_items_to_array()

class TestModel implements TaggableInterface
{
use TaggableTrait, NamespacedEntity;
use TaggableTrait, Modules\Core\Traits\NamespacedEntity;
protected static $entityNamespace = 'asgardcms/media';
}
27 changes: 0 additions & 27 deletions Traits/NamespacedEntity.php

This file was deleted.

2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -47,7 +47,7 @@ Your entity needs to implement the `Modules\Tag\Contracts\TaggableInterface` int

In order for your entity to satisfy this interface it needs to use the following traits:

- `Modules\Tag\Traits\NamespacedEntity`
- `Modules\Core\Traits\NamespacedEntity`
- `Modules\Tag\Traits\TaggableTrait`

Tags are organised by namespace. This is used in order to get the tags for a specific namespace on the display of the field. It also creates tags for that namespace if tags need to be created.
Expand Down

0 comments on commit 1fdd936

Please sign in to comment.