File tree Expand file tree Collapse file tree 9 files changed +34
-14
lines changed
Expand file tree Collapse file tree 9 files changed +34
-14
lines changed Original file line number Diff line number Diff line change 3434 },
3535 "autoload" : {
3636 "psr-4" : {
37- "UniSharp\\ Category \\ " : " src"
37+ "UniSharp\\ Categorizable \\ " : " src"
3838 }
3939 },
4040 "autoload-dev" : {
4141 "psr-4" : {
42- "UniSharp\\ Category \\ Test\\ " : " tests"
42+ "UniSharp\\ Categorizable \\ Test\\ " : " tests"
4343 }
4444 },
4545 "scripts" : {
5050 "extra" : {
5151 "branch-alias" : {
5252 "dev-master" : " 1.0-dev"
53+ },
54+ "laravel" : {
55+ "providers" : [
56+ " UniSharp\\ Categorizable\\ Providers\\ ServiceProvider"
57+ ]
5358 }
5459 },
5560 "config" : {
Original file line number Diff line number Diff line change 11<?php
2- namespace UniSharp \Category ;
2+ namespace UniSharp \Categorizable ;
33
44use Cviebrock \EloquentTaggable \Taggable ;
55use Illuminate \Database \Eloquent \Builder ;
Original file line number Diff line number Diff line change 11<?php
22
3- namespace UniSharp \Category \Models ;
3+ namespace UniSharp \Categorizable \Models ;
44
55use Cviebrock \EloquentTaggable \Models \Tag ;
66
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace UniSharp \Categorizable \Providers
4+
5+ use Illuminate \Support \ServiceProvider ;
6+ use Cviebrock \EloquentTaggable \Services \TagService ;
7+ use UniSharp \Categorizable \Services \TagService as UnisharpTagService ;
8+
9+ class Categorizable extends ServiceProvider
10+ {
11+ public function register ()
12+ {
13+ $ this ->app ->singleton (TagService::class, UnisharpTagService::class);
14+ }
15+ }
Original file line number Diff line number Diff line change 11<?php
2- namespace UniSharp \Category \Services ;
2+ namespace UniSharp \Categorizable \Services ;
33
44use Cviebrock \EloquentTaggable \Models \Tag ;
55use Cviebrock \EloquentTaggable \Services \TagService as OriginalTagService ;
Original file line number Diff line number Diff line change 11<?php
2- namespace UniSharp \Category \Test ;
2+ namespace UniSharp \Categorizable \Test ;
33
4- use UniSharp \Category \Test \TestCase ;
5- use UniSharp \Category \Test \TestModel ;
6- use UniSharp \Category \Models \Category ;
7- use UniSharp \Category \Services \TagService as UnisharpTagService ;
4+ use UniSharp \Categorizable \Test \TestCase ;
5+ use UniSharp \Categorizable \Test \TestModel ;
6+ use UniSharp \Categorizable \Models \Category ;
7+ use UniSharp \Categorizable \Services \TagService as UnisharpTagService ;
88use Cviebrock \EloquentTaggable \Services \TagService ;
99
1010class CategoriesTest extends TestCase
Original file line number Diff line number Diff line change 11<?php
2- namespace UniSharp \Category \Test ;
2+ namespace UniSharp \Categorizable \Test ;
33
44use Cviebrock \EloquentTaggable \ServiceProvider ;
55use Orchestra \Testbench \TestCase as Orchestra ;
Original file line number Diff line number Diff line change 11<?php
2- namespace UniSharp \Category \Test ;
2+ namespace UniSharp \Categorizable \Test ;
33
4- use UniSharp \Category \Categorizable ;
4+ use UniSharp \Categorizable \Categorizable ;
55use Illuminate \Database \Eloquent \Model ;
66
77/**
Original file line number Diff line number Diff line change 11<?php
2- namespace UniSharp \Category \Test ;
2+ namespace UniSharp \Categorizable \Test ;
33
44use Illuminate \Support \ServiceProvider as LaravelServiceProvider ;
55
You can’t perform that action at this time.
0 commit comments